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 CLogger
log
Loggerint
m_AD_Client_ID
int
m_AD_Org_ID
BigDecimal
m_Amount
int
m_C_BPartner_ID
int
m_C_Currency_ID
Invoice Currencyboolean
m_Cash_As_Payment
Timestamp
m_DateAcct
Start Acct DateString
m_DocStatus
boolean
m_isSOTrx
Is SOTrxboolean
m_needSave
boolean
m_onlyRule
Only allow changing RuleString
m_PaymentRule
Start 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 boolean
dynInit()
protected MBankAccountProcessor
getBankAccountProcessor(Properties ctx, String tender, String CCType, int AD_Client_ID, int C_Currency_ID, BigDecimal PayAmt, String trxName)
GridTab
getGridTab()
protected int
getInvoiceID(int C_Order_ID)
Get Invoice ID for Orderint
getWindowNo()
boolean
isApproved()
protected boolean
isBankAccountProcessorExist(Properties ctx, String tender, String CCType, int AD_Client_ID, int C_Currency_ID, BigDecimal PayAmt, String trxName)
boolean
isOnlyRule()
protected void
loadCurrencies()
Fill s_Currencies with EMU currenciesboolean
needSave()
Need Save record (payment with waiting order)void
processOnline()
boolean
saveChanges()
Save Changesvoid
setBankAccountProcessor(MBankAccountProcessor bankAccountProcessor)
void
setCustomizeValues(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:
dynInit
in interfaceIPaymentForm
- Throws:
Exception
-
saveChanges
public boolean saveChanges()
Description copied from interface:IPaymentForm
Save Changes- Specified by:
saveChanges
in 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:IPaymentForm
Need Save record (payment with waiting order)- Specified by:
needSave
in 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:
processOnline
in 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:
isApproved
in interfaceIPaymentForm
-
getWindowNo
public int getWindowNo()
-
setCustomizeValues
public void setCustomizeValues(PO po)
- Specified by:
setCustomizeValues
in interfaceIPaymentForm
-
setBankAccountProcessor
public void setBankAccountProcessor(MBankAccountProcessor bankAccountProcessor)
- Specified by:
setBankAccountProcessor
in interfaceIPaymentForm
-
-