Package org.brerp.apps.form
Class BrERPAllocation
java.lang.Object
org.compiere.apps.form.Allocation
org.brerp.apps.form.BrERPAllocation
-
Field Summary
Modifier and TypeFieldDescriptionint
boolean
boolean
int
static CLogger
Loggerint
END DEVCOFFEEint
int
int
int
boolean
START EFFAint
END EFFA -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
calculate
(boolean isMultiCurrency) calculateInvoice
(IMiniTable invoice, boolean isMultiCurrency) calculate selected invoice totalcalculatePayment
(IMiniTable payment, boolean isMultiCurrency) Calculate Allocation infovoid
Load Business Partner Info - Payments - Invoicesvoid
dynInit()
int
int
getInvoiceColumnNames
(boolean isMultiCurrency) getInvoiceData
(boolean isMultiCurrency, Object date, IMiniTable invoiceTable) int
getPaymentColumnNames
(boolean isMultiCurrency) getPaymentData
(boolean isMultiCurrency, Object date, IMiniTable paymentTable) saveData
(int m_WindowNo, Timestamp date, IMiniTable payment, IMiniTable invoice, String trxName) Save Datavoid
setInvoiceColumnClass
(IMiniTable invoiceTable, boolean isMultiCurrency) set class type for each columnvoid
setPaymentColumnClass
(IMiniTable paymentTable, boolean isMultiCurrency) writeOff
(int row, int col, boolean isInvoice, IMiniTable payment, IMiniTable invoice, boolean isAutoWriteOff) update payment or invoice applied and write off amountMethods inherited from class org.compiere.apps.form.Allocation
calculate, calculateDifference, getAD_Org_ID, getC_BPartner_ID, getC_Charge_ID, getC_Currency_ID, getC_DocType_ID, getInvoiceAppliedTotal, getInvoiceData, getInvoiceInfoText, getPaymentAppliedTotal, getPaymentData, getPaymentInfoText, getSelectedInvoiceCount, getSelectedPaymentCount, getTotalDifference, isOkToAllocate, prepareForCalculate, setAD_Org_ID, setC_BPartner_ID, setC_Charge_ID, setC_Currency_ID, setC_DocType_ID
-
Field Details
-
format
-
log
Logger -
m_C_Currency_ID
public int m_C_Currency_ID -
m_C_Charge_ID
public int m_C_Charge_ID -
m_C_DocType_ID
public int m_C_DocType_ID -
m_C_BPartner_ID
public int m_C_BPartner_ID -
m_cof_Processed
public boolean m_cof_ProcessedSTART EFFA -
totalInv
END EFFA -
totalPay
-
totalDiff
-
allocDate
-
p_CDocTypeID
public int p_CDocTypeID -
i_CDocTypeID
public int i_CDocTypeID -
i_COFCCustodyID
public int i_COFCCustodyID -
i_CheckAllocated
public boolean i_CheckAllocated -
i_CNABGenerated
public boolean i_CNABGenerated -
i_dueDateFrom
-
i_dueDateTo
-
m_AD_Org_ID
public int m_AD_Org_IDEND DEVCOFFEE
-
-
Constructor Details
-
BrERPAllocation
public BrERPAllocation()
-
-
Method Details
-
dynInit
- Overrides:
dynInit
in classAllocation
- Throws:
Exception
-
checkBPartner
public void checkBPartner()Load Business Partner Info - Payments - Invoices- Overrides:
checkBPartner
in classAllocation
-
getPaymentData
public Vector<Vector<Object>> getPaymentData(boolean isMultiCurrency, Object date, IMiniTable paymentTable) - Overrides:
getPaymentData
in classAllocation
paymentTable
- not used- Returns:
- list of payment record
-
getPaymentColumnNames
- Overrides:
getPaymentColumnNames
in classAllocation
- Returns:
- column name list for payment data
-
setPaymentColumnClass
- Overrides:
setPaymentColumnClass
in classAllocation
-
getInvoiceData
public Vector<Vector<Object>> getInvoiceData(boolean isMultiCurrency, Object date, IMiniTable invoiceTable) - Overrides:
getInvoiceData
in classAllocation
invoiceTable
- not use- Returns:
- list of unpaid invoice data
-
getInvoiceColumnNames
- Overrides:
getInvoiceColumnNames
in classAllocation
- Returns:
- list of column name/header
-
setInvoiceColumnClass
Description copied from class:Allocation
set class type for each column- Overrides:
setInvoiceColumnClass
in classAllocation
-
calculate
public void calculate(boolean isMultiCurrency) -
writeOff
public String writeOff(int row, int col, boolean isInvoice, IMiniTable payment, IMiniTable invoice, boolean isAutoWriteOff) Description copied from class:Allocation
update payment or invoice applied and write off amount- Overrides:
writeOff
in classAllocation
- Parameters:
row
- row to updatecol
- change is trigger by selected or applied columnisInvoice
- update invoice or payment applied amountisAutoWriteOff
- true to write off difference, false to use over/under for difference- Returns:
- warning message (if any)
-
calculatePayment
Calculate Allocation info- Overrides:
calculatePayment
in classAllocation
- Returns:
- payment summary
-
calculateInvoice
Description copied from class:Allocation
calculate selected invoice total- Overrides:
calculateInvoice
in classAllocation
- Returns:
- invoice summary
-
saveData
public MAllocationHdr saveData(int m_WindowNo, Timestamp date, IMiniTable payment, IMiniTable invoice, String trxName) Save Data- Overrides:
saveData
in classAllocation
- Returns:
MAllocationHdr
-
getM_noPayments
public int getM_noPayments() -
getI_interest
public int getI_interest() -
getI_penalty
public int getI_penalty()
-