Package org.compiere.grid
Class PaymentFormCash
java.lang.Object
org.compiere.grid.PaymentForm
org.compiere.grid.PaymentFormCash
- All Implemented Interfaces:
IPaymentForm
- Direct Known Subclasses:
WPaymentFormCash
Payment form for cash tender type
- Author:
- Elaine
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
Start Bank Accountprotected int
Start CashBookprotected int
Start CashBook Lineprotected int
Start Paymentprotected MCashLine
protected MPayment
protected MPayment
protected String
protected KeyNamePair
protected KeyNamePair
Fields inherited from class org.compiere.grid.PaymentForm
log, m_AD_Client_ID, m_AD_Org_ID, m_Amount, m_C_BPartner_ID, m_C_Currency_ID, m_Cash_As_Payment, m_DateAcct, m_DocStatus, m_isSOTrx, m_needSave, m_onlyRule, m_PaymentRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterSave
(boolean success) After save and transaction have been committed/rollbackGet bank accountsGet cash booksvoid
loadData()
Load payment and related transaction records.boolean
save
(int C_BankAccount_ID, int C_CashBook_ID, Timestamp dateAcct, BigDecimal amount, String trxName) Save changesboolean
Save ChangesMethods inherited from class org.compiere.grid.PaymentForm
dynInit, getBankAccountProcessor, getGridTab, getInvoiceID, getWindowNo, isApproved, isBankAccountProcessorExist, isOnlyRule, needSave, processOnline, setBankAccountProcessor, setCustomizeValues
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.compiere.grid.IPaymentForm
checkMandatory, closeWindow, getWindow, saveChangesInTrx, showWindow
-
Field Details
-
m_C_Payment_ID
protected int m_C_Payment_IDStart Payment -
m_mPayment
-
m_mPaymentOriginal
-
m_C_BankAccount_ID
protected int m_C_BankAccount_IDStart Bank Account -
m_C_CashLine_ID
protected int m_C_CashLine_IDStart CashBook Line -
m_cashLine
-
m_C_CashBook_ID
protected int m_C_CashBook_IDStart CashBook -
selectedBankAccount
-
selectedCashBook
-
processMsg
-
-
Constructor Details
-
PaymentFormCash
- Parameters:
windowNo
-mTab
-
-
-
Method Details
-
loadData
public void loadData()Description copied from interface:IPaymentForm
Load payment and related transaction records. Usually call from dynInit() -
getBankAccountList
Get bank accounts- Returns:
- list of active bank account (C_BankAccount_ID, Name+AccountNo)
-
getCashBookList
Get cash books- Returns:
- list of active cash book (C_CashBook_ID, Name)
-
saveChanges
public boolean saveChanges()Description copied from interface:IPaymentForm
Save Changes- Specified by:
saveChanges
in interfaceIPaymentForm
- Overrides:
saveChanges
in classPaymentForm
- Returns:
- true, if Window can exit
-
save
public boolean save(int C_BankAccount_ID, int C_CashBook_ID, Timestamp dateAcct, BigDecimal amount, String trxName) Save changes- Parameters:
C_BankAccount_ID
-C_CashBook_ID
-dateAcct
-amount
-trxName
-- Returns:
- true if save successfully
-
afterSave
public void afterSave(boolean success) Description copied from class:PaymentForm
After save and transaction have been committed/rollback- Specified by:
afterSave
in classPaymentForm
-