Class Doc_Payment

java.lang.Object
org.compiere.acct.Doc
org.compiere.acct.Doc_Payment

public class Doc_Payment extends Doc
Post MPayment Documents.
  Table:              C_Payment (335)
  Document Types      ARP, APP
  
Version:
$Id: Doc_Payment.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $
Author:
Jorg Janke
  • Constructor Details

    • Doc_Payment

      public Doc_Payment(MAcctSchema as, ResultSet rs, String trxName)
      Constructor
      Parameters:
      as - accounting schema
      rs - record
      trxName - trx
  • Method Details

    • loadDocumentDetails

      protected String loadDocumentDetails()
      Load Specific Document Details
      Specified by:
      loadDocumentDetails in class Doc
      Returns:
      error message or null
    • getBalance

      public BigDecimal getBalance()
      Get Source Currency Balance - always zero
      Specified by:
      getBalance in class Doc
      Returns:
      Zero (always balanced)
    • createFacts

      public ArrayList<Fact> createFacts(MAcctSchema as)
      Create Facts (the accounting logic) for ARP, APP.
        ARP
            BankInTransit   DR
            UnallocatedCash         CR
            or Charge/C_Prepayment
        APP
            PaymentSelect   DR
            or Charge/V_Prepayment
            BankInTransit           CR
        CashBankTransfer
            -
        
      Specified by:
      createFacts in class Doc
      Parameters:
      as - accounting schema
      Returns:
      Fact
    • getCurrencyRate

      public BigDecimal getCurrencyRate()
      Overrides:
      getCurrencyRate in class Doc
      Returns:
      currency rate or null
    • isConvertible

      public boolean isConvertible(MAcctSchema acctSchema)
      Description copied from class: Doc
      Is Document convertible to currency and Conversion Type
      Overrides:
      isConvertible in class Doc
      Parameters:
      acctSchema - accounting schema
      Returns:
      true, if convertible to accounting currency