Class Doc_AssetAddition

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

public class Doc_AssetAddition extends Doc
Posting for MAssetAddition document. DOCBASETYPE_GLDocument.
Author:
Teo_Sarca, SC ARHIPAC SERVICE SRL
  • Constructor Details

  • Method Details

    • loadDocumentDetails

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

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

      public ArrayList<Fact> createFacts(MAcctSchema as)
      Produce posting:
              20.., 21..[A_Asset_Acct]                        =       23..[P_Asset_Acct/Project Acct]
       
      Specified by:
      createFacts in class Doc
      Parameters:
      as -
      Returns:
      facts
    • getP_Expense_Acct

      public MAccount getP_Expense_Acct(int M_Product_ID, MAcctSchema as)
      Parameters:
      M_Product_ID -
      as -
      Returns:
      expense account
    • getInvoicePartner_ID

      public int getInvoicePartner_ID()
      Returns:
      C_BPartner_ID from invoice or 0
    • getInvoiceProject_ID

      public int getInvoiceProject_ID()
      Returns:
      C_Project_ID from invoice line or 0