Package org.compiere.grid
Class PaymentForm
- java.lang.Object
-
- org.compiere.grid.PaymentForm
-
- All Implemented Interfaces:
IPaymentForm
- Direct Known Subclasses:
PaymentFormCash,PaymentFormCheck,PaymentFormCreditCard,PaymentFormDirect,PaymentFormMixedPOS,PaymentFormOnCredit
public abstract class PaymentForm extends Object implements IPaymentForm
- Author:
- Elaine
-
-
Field Summary
Fields Modifier and Type Field Description protected CLoggerlogLoggerintm_AD_Client_IDintm_AD_Org_IDBigDecimalm_Amountintm_C_BPartner_IDintm_C_Currency_IDInvoice Currencybooleanm_Cash_As_PaymentTimestampm_DateAcctStart Acct DateStringm_DocStatusbooleanm_isSOTrxIs SOTrxbooleanm_needSavebooleanm_onlyRuleOnly allow changing RuleStringm_PaymentRuleStart Payment RuleHashtable<Integer,KeyNamePair>s_Currencies
-
Constructor Summary
Constructors Constructor Description PaymentForm(int WindowNo, GridTab mTab)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandynInit()protected MBankAccountProcessorgetBankAccountProcessor(Properties ctx, String tender, String CCType, int AD_Client_ID, int C_Currency_ID, BigDecimal PayAmt, String trxName)GridTabgetGridTab()protected intgetInvoiceID(int C_Order_ID)Get Invoice ID for OrderintgetWindowNo()booleanisApproved()protected booleanisBankAccountProcessorExist(Properties ctx, String tender, String CCType, int AD_Client_ID, int C_Currency_ID, BigDecimal PayAmt, String trxName)booleanisOnlyRule()protected voidloadCurrencies()Fill s_Currencies with EMU currenciesbooleanneedSave()Need Save record (payment with waiting order)voidprocessOnline()booleansaveChanges()Save ChangesvoidsetBankAccountProcessor(MBankAccountProcessor bankAccountProcessor)voidsetCustomizeValues(PO po)-
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, loadData, saveChangesInTrx, showWindow
-
-
-
-
Field Detail
-
log
protected transient CLogger log
Logger
-
m_DocStatus
public String m_DocStatus
-
m_PaymentRule
public String m_PaymentRule
Start Payment Rule
-
m_DateAcct
public Timestamp m_DateAcct
Start Acct Date
-
m_C_Currency_ID
public int m_C_Currency_ID
Invoice Currency
-
m_AD_Client_ID
public int m_AD_Client_ID
-
m_Cash_As_Payment
public boolean m_Cash_As_Payment
-
m_AD_Org_ID
public int m_AD_Org_ID
-
m_C_BPartner_ID
public int m_C_BPartner_ID
-
m_Amount
public BigDecimal m_Amount
-
m_needSave
public boolean m_needSave
-
m_onlyRule
public boolean m_onlyRule
Only allow changing Rule
-
m_isSOTrx
public boolean m_isSOTrx
Is SOTrx
-
s_Currencies
public Hashtable<Integer,KeyNamePair> s_Currencies
-
-
Constructor Detail
-
PaymentForm
public PaymentForm(int WindowNo, GridTab mTab)
-
-
Method Detail
-
dynInit
public boolean dynInit() throws Exception- Specified by:
dynInitin interfaceIPaymentForm- Throws:
Exception
-
saveChanges
public boolean saveChanges()
Description copied from interface:IPaymentFormSave Changes- Specified by:
saveChangesin interfaceIPaymentForm- Returns:
- true, if Window can exit
-
loadCurrencies
protected void loadCurrencies()
Fill s_Currencies with EMU currencies
-
needSave
public boolean needSave()
Description copied from interface:IPaymentFormNeed Save record (payment with waiting order)- Specified by:
needSavein interfaceIPaymentForm- Returns:
- true if payment with waiting order
-
getInvoiceID
protected int getInvoiceID(int C_Order_ID)
Get Invoice ID for Order- Parameters:
C_Order_ID- order- Returns:
- C_Invoice_ID or 0 if not found
-
processOnline
public void processOnline()
- Specified by:
processOnlinein interfaceIPaymentForm
-
isBankAccountProcessorExist
protected boolean isBankAccountProcessorExist(Properties ctx, String tender, String CCType, int AD_Client_ID, int C_Currency_ID, BigDecimal PayAmt, String trxName)
-
getBankAccountProcessor
protected MBankAccountProcessor getBankAccountProcessor(Properties ctx, String tender, String CCType, int AD_Client_ID, int C_Currency_ID, BigDecimal PayAmt, String trxName)
-
getGridTab
public GridTab getGridTab()
-
isOnlyRule
public boolean isOnlyRule()
-
isApproved
public boolean isApproved()
- Specified by:
isApprovedin interfaceIPaymentForm
-
getWindowNo
public int getWindowNo()
-
setCustomizeValues
public void setCustomizeValues(PO po)
- Specified by:
setCustomizeValuesin interfaceIPaymentForm
-
setBankAccountProcessor
public void setBankAccountProcessor(MBankAccountProcessor bankAccountProcessor)
- Specified by:
setBankAccountProcessorin interfaceIPaymentForm
-
-