Package org.brerp.apps.form
Class BrERPAllocation
java.lang.Object
org.compiere.apps.form.Allocation
org.brerp.apps.form.BrERPAllocation
-
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleanbooleanintstatic CLoggerLoggerintEND DEVCOFFEEintintintintbooleanSTART EFFAintEND EFFAint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculate(boolean isMultiCurrency) calculateInvoice(IMiniTable invoice, boolean isMultiCurrency) Calculate total of selected invoicescalculatePayment(IMiniTable payment, boolean isMultiCurrency) Calculate Allocation infovoidLoad Business Partner Info - Payments - InvoicesvoiddynInit()intintgetInvoiceColumnNames(boolean isMultiCurrency) Get column names forAllocation.getInvoiceData(boolean, Timestamp, String)getInvoiceData(boolean isMultiCurrency, Object date, IMiniTable invoiceTable) intgetPaymentColumnNames(boolean isMultiCurrency) Get column names forAllocation.getPaymentData(boolean, Timestamp, String)getPaymentData(boolean isMultiCurrency, Object date, IMiniTable paymentTable) saveData(int m_WindowNo, Timestamp date, IMiniTable payment, IMiniTable invoice, String trxName) Save DatavoidsetInvoiceColumnClass(IMiniTable invoiceTable, boolean isMultiCurrency) Set class type for each columnvoidsetPaymentColumnClass(IMiniTable paymentTable, boolean isMultiCurrency) Set class/type of columnswriteOff(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
-
user2_ID
public int user2_ID -
i_dateInvoicedTo
-
i_dateInvoicedFrom
-
m_AD_Org_ID
public int m_AD_Org_IDEND DEVCOFFEE
-
-
Constructor Details
-
BrERPAllocation
public BrERPAllocation()
-
-
Method Details
-
dynInit
- Overrides:
dynInitin classAllocation- Throws:
Exception
-
checkBPartner
public void checkBPartner()Load Business Partner Info - Payments - Invoices- Overrides:
checkBPartnerin classAllocation
-
getPaymentData
public Vector<Vector<Object>> getPaymentData(boolean isMultiCurrency, Object date, IMiniTable paymentTable) - Overrides:
getPaymentDatain classAllocationpaymentTable- not used- Returns:
- list of payment record
-
getPaymentColumnNames
Description copied from class:AllocationGet column names forAllocation.getPaymentData(boolean, Timestamp, String)- Overrides:
getPaymentColumnNamesin classAllocation- Returns:
- column name list for payment data
-
setPaymentColumnClass
Description copied from class:AllocationSet class/type of columns- Overrides:
setPaymentColumnClassin classAllocation
-
getInvoiceData
public Vector<Vector<Object>> getInvoiceData(boolean isMultiCurrency, Object date, IMiniTable invoiceTable) - Overrides:
getInvoiceDatain classAllocationinvoiceTable- not use- Returns:
- list of unpaid invoice data
-
getInvoiceColumnNames
Description copied from class:AllocationGet column names forAllocation.getInvoiceData(boolean, Timestamp, String)- Overrides:
getInvoiceColumnNamesin classAllocation- Returns:
- list of column name/header
-
setInvoiceColumnClass
Description copied from class:AllocationSet class type for each column- Overrides:
setInvoiceColumnClassin 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:AllocationUpdate payment or invoice applied and write off amount- Overrides:
writeOffin 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:
calculatePaymentin classAllocation- Returns:
- payment summary
-
calculateInvoice
Description copied from class:AllocationCalculate total of selected invoices- Overrides:
calculateInvoicein classAllocation- Returns:
- invoice summary
-
saveData
public MAllocationHdr saveData(int m_WindowNo, Timestamp date, IMiniTable payment, IMiniTable invoice, String trxName) Save Data- Overrides:
saveDatain classAllocation- Returns:
MAllocationHdr
-
getM_noPayments
public int getM_noPayments() -
getI_interest
public int getI_interest() -
getI_penalty
public int getI_penalty()
-