Class PaymentFormCash

java.lang.Object
org.compiere.grid.PaymentForm
org.compiere.grid.PaymentFormCash
All Implemented Interfaces:
IPaymentForm
Direct Known Subclasses:
WPaymentFormCash

public abstract class PaymentFormCash extends PaymentForm
Payment form for cash tender type
Author:
Elaine
  • Field Details

    • m_C_Payment_ID

      protected int m_C_Payment_ID
      Start Payment
    • m_mPayment

      protected MPayment m_mPayment
    • m_mPaymentOriginal

      protected MPayment m_mPaymentOriginal
    • m_C_BankAccount_ID

      protected int m_C_BankAccount_ID
      Start Bank Account
    • m_C_CashLine_ID

      protected int m_C_CashLine_ID
      Start CashBook Line
    • m_cashLine

      protected MCashLine m_cashLine
    • m_C_CashBook_ID

      protected int m_C_CashBook_ID
      Start CashBook
    • selectedBankAccount

      protected KeyNamePair selectedBankAccount
    • selectedCashBook

      protected KeyNamePair selectedCashBook
    • processMsg

      protected String processMsg
  • Constructor Details

    • PaymentFormCash

      public PaymentFormCash(int windowNo, GridTab mTab)
      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

      public ArrayList<KeyNamePair> getBankAccountList()
      Get bank accounts
      Returns:
      list of active bank account (C_BankAccount_ID, Name+AccountNo)
    • getCashBookList

      public ArrayList<KeyNamePair> 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 interface IPaymentForm
      Overrides:
      saveChanges in class PaymentForm
      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 class PaymentForm