Class Doc_ProjectIssue


  • public class Doc_ProjectIssue
    extends Doc
    Project Issue. Note: Will load the default GL Category. Set up a document type to set the GL Category.
    Version:
    $Id: Doc_ProjectIssue.java,v 1.2 2006/07/30 00:53:33 jjanke Exp $
    Author:
    Jorg Janke
    • Constructor Detail

      • Doc_ProjectIssue

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

      • loadDocumentDetails

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

        public String getDocumentNo()
        Get DocumentNo
        Overrides:
        getDocumentNo in class Doc
        Returns:
        document no
      • 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 PJI
          Issue
              ProjectWIP      DR
              Inventory               CR
          
        Project Account is either Asset or WIP depending on Project Type
        Specified by:
        createFacts in class Doc
        Parameters:
        as - accounting schema
        Returns:
        Fact