Class Doc_InOut

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

public class Doc_InOut extends Doc
Post Shipment/Receipt Documents.
  Table:              M_InOut (319)
  Document Types:     MMS, MMR
  
Version:
$Id: Doc_InOut.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $
Author:
Jorg Janke, Armen Rizal, Goodwill Consulting
  • BF [ 1745154 ] Cost in Reversing Material Related Docs
  • BF [ 2858043 ] Correct Included Tax in Average Costing
    • Constructor Details

      • Doc_InOut

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

      • loadDocumentDetails

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

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

        public ArrayList<Fact> createFacts(MAcctSchema as)
        Create Facts (the accounting logic) for MMS, MMR.
          Shipment
              CoGS (RevOrg)   DR
              Inventory               CR
          Shipment of Project Issue
              CoGS            DR
              Project                 CR
          Receipt
              Inventory       DR
              NotInvoicedReceipt      CR
          
        Specified by:
        createFacts in class Doc
        Parameters:
        as - accounting schema
        Returns:
        Fact
      • isDeferPosting

        public boolean isDeferPosting()
        Overrides:
        isDeferPosting in class Doc
        Returns:
        true if posting of document should be deferred to next run of accounting posting
      • getC_Currency_ID

        public int getC_Currency_ID()
        Description copied from class: Doc
        Get C_Currency_ID
        Overrides:
        getC_Currency_ID in class Doc
        Returns:
        C_Currency_ID
      • getC_ConversionType_ID

        public int getC_ConversionType_ID()
        Description copied from class: Doc
        Get C_ConversionType_ID
        Overrides:
        getC_ConversionType_ID in class Doc
        Returns:
        C_ConversionType_ID