Class Doc_Cash


  • public class Doc_Cash
    extends Doc
    Post Invoice Documents.
      Table:              C_Cash (407)
      Document Types:     CMC
      
    Version:
    $Id: Doc_Cash.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $
    Author:
    Jorg Janke
    • Constructor Detail

      • Doc_Cash

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

      • 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 - 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 CMC.
          Expense
                  CashExpense     DR
                  CashAsset               CR
          Receipt
                  CashAsset       DR
                  CashReceipt             CR
          Charge
                  Charge          DR
                  CashAsset               CR
          Difference
                  CashDifference  DR
                  CashAsset               CR
          Invoice
                  CashAsset       DR
                  CashTransfer            CR
          Transfer
                  BankInTransit   DR
                  CashAsset               CR
          
        Specified by:
        createFacts in class Doc
        Parameters:
        as - account schema
        Returns:
        Fact