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
Base class for payment form
- Author:
- Elaine
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CLoggerLoggerprotected intprotected intprotected BigDecimalprotected intprotected intInvoice Currencyprotected booleanprotected TimestampStart Acct Dateprotected Stringprotected booleanIs SOTrxprotected booleanprotected booleanOnly allow changing Ruleprotected StringStart Payment Rule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidafterSave(boolean success) After save and transaction have been committed/rollbackbooleandynInit()Dynamic initializationprotected MBankAccountProcessorgetBankAccountProcessor(Properties ctx, String tender, String CCType, int AD_Client_ID, int C_Currency_ID, BigDecimal PayAmt, String trxName) Get online payment processor configurationprotected intgetInvoiceID(int C_Order_ID) Get Invoice ID for OrderintbooleanIs payment transaction have been approved by payment gatewayprotected booleanisBankAccountProcessorExist(Properties ctx, String tender, String CCType, int AD_Client_ID, int C_Currency_ID, BigDecimal PayAmt, String trxName) Is online payment processor have been configured for bank accountbooleanIs only show payment rule and doesn't save changes to DBbooleanneedSave()Need to save the calling window (order, invoice)voidOnline payment processing (for e.g credit card)booleanSave ChangesvoidsetBankAccountProcessor(MBankAccountProcessor bankAccountProcessor) Set online payment processor configurationvoidsetCustomizeValues(PO po) Make additional changes to PO before write to DBMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.compiere.grid.IPaymentForm
checkMandatory, closeWindow, getWindow, loadData, saveChangesInTrx, showWindow
-
Field Details
-
log
Logger -
m_DocStatus
-
m_PaymentRule
Start Payment Rule -
m_DateAcct
Start Acct Date -
m_C_Currency_ID
protected int m_C_Currency_IDInvoice Currency -
m_AD_Client_ID
protected int m_AD_Client_ID -
m_Cash_As_Payment
protected boolean m_Cash_As_Payment -
m_AD_Org_ID
protected int m_AD_Org_ID -
m_C_BPartner_ID
protected int m_C_BPartner_ID -
m_Amount
-
m_needSave
protected boolean m_needSave -
m_onlyRule
protected boolean m_onlyRuleOnly allow changing Rule -
m_isSOTrx
protected boolean m_isSOTrxIs SOTrx
-
-
Constructor Details
-
PaymentForm
- Parameters:
WindowNo-mTab-
-
-
Method Details
-
dynInit
Description copied from interface:IPaymentFormDynamic initialization- Specified by:
dynInitin interfaceIPaymentForm- Returns:
- false if there are errors, true otherwise
- Throws:
Exception
-
saveChanges
public boolean saveChanges()Description copied from interface:IPaymentFormSave Changes- Specified by:
saveChangesin interfaceIPaymentForm- Returns:
- true, if Window can exit
-
afterSave
protected abstract void afterSave(boolean success) After save and transaction have been committed/rollback- Parameters:
success-
-
needSave
public boolean needSave()Description copied from interface:IPaymentFormNeed to save the calling window (order, invoice)- Specified by:
needSavein interfaceIPaymentForm- Returns:
- true if changes have been made to the calling window
-
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()Description copied from interface:IPaymentFormOnline payment processing (for e.g credit card)- 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) Is online payment processor have been configured for bank account- Parameters:
ctx-tender-CCType-AD_Client_ID-C_Currency_ID-PayAmt-trxName-- Returns:
- true if online payment processor have been configured for bank account
-
getBankAccountProcessor
protected MBankAccountProcessor getBankAccountProcessor(Properties ctx, String tender, String CCType, int AD_Client_ID, int C_Currency_ID, BigDecimal PayAmt, String trxName) Get online payment processor configuration- Parameters:
ctx-tender- tender typeCCType- credit card typeAD_Client_ID-C_Currency_ID-PayAmt-trxName-- Returns:
MBankAccountProcessor
-
getGridTab
- Returns:
GridTab
-
isOnlyRule
public boolean isOnlyRule()Description copied from interface:IPaymentFormIs only show payment rule and doesn't save changes to DB- Specified by:
isOnlyRulein interfaceIPaymentForm- Returns:
- true if only show payment rule and doesn't save changes to DB
-
isApproved
public boolean isApproved()Description copied from interface:IPaymentFormIs payment transaction have been approved by payment gateway- Specified by:
isApprovedin interfaceIPaymentForm- Returns:
- true if payment transaction have been approved by payment gateway
-
getWindowNo
public int getWindowNo()- Returns:
- window no
-
setCustomizeValues
Description copied from interface:IPaymentFormMake additional changes to PO before write to DB- Specified by:
setCustomizeValuesin interfaceIPaymentForm
-
setBankAccountProcessor
Description copied from interface:IPaymentFormSet online payment processor configuration- Specified by:
setBankAccountProcessorin interfaceIPaymentForm
-