Class Doc_BankStatement

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

public class Doc_BankStatement extends Doc
Post MBankStatement Documents.
  Table:              C_BankStatement (392)
  Document Types:     CMB
  
Version:
$Id: Doc_Bank.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $

FR [ 1840016 ] Avoid usage of clearing accounts - subject to C_AcctSchema.IsPostIfClearingEqual.
Avoid posting if both accounts BankAsset and BankInTransit are equal.

Author:
Jorg Janke, victor.perez@e-evolution.com, e-Evolution http://www.e-evolution.com
  • FR [ 2520591 ] Support multiples calendar for Org
    • Field Details

      • m_C_BankAccount_ID

        protected int m_C_BankAccount_ID
        Bank Account
    • Constructor Details

      • Doc_BankStatement

        public Doc_BankStatement(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
      • loadLines

        protected DocLine[] loadLines(MBankStatement bs)
        Load bank statement lines.
        Parameters:
        bs - bank statement
          4 amounts
          AMTTYPE_Payment
          AMTTYPE_Statement2
          AMTTYPE_Charge
          AMTTYPE_Interest
          
        Returns:
        DocLine Array
      • getBalance

        public BigDecimal getBalance()
        Get Source Currency Balance - subtracts line amounts from total - no rounding
        Specified by:
        getBalance in class Doc
        Returns:
        positive amount, if total invoice is bigger than lines
      • createFacts

        public ArrayList<Fact> createFacts(MAcctSchema as)
        Create Facts (the accounting logic) for CMB.
              BankAsset       DR      CR  (Statement)
              BankInTransit   DR      CR  (Payment)
              Charge          DR          (Charge)
              Interest        DR      CR  (Interest)
          
        Specified by:
        createFacts in class Doc
        Parameters:
        as - accounting schema
        Returns:
        Fact
      • getBank_Org_ID

        protected int getBank_Org_ID()
        Get AD_Org_ID from Bank Account
        Returns:
        AD_Org_ID or 0