Class Doc_GLJournal


  • public class Doc_GLJournal
    extends Doc
    Post GL Journal Documents.
      Table:              GL_Journal (224)
      Document Types:     GLJ
      
    Version:
    $Id: Doc_GLJournal.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $
    Author:
    Jorg Janke
    • Field Detail

      • m_PostingType

        protected String m_PostingType
        Posting Type
      • m_C_AcctSchema_ID

        protected int m_C_AcctSchema_ID
    • Constructor Detail

      • Doc_GLJournal

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

        protected DocLine[] loadLines​(MJournal journal)
        Load Invoice Line
        Parameters:
        journal - journal
        Returns:
        DocLine Array
      • getBalance

        public BigDecimal getBalance()
        Get Source Currency Balance - subtracts line and tax 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 GLJ. (only for the accounting scheme, it was created)
              account     DR          CR
          
        Specified by:
        createFacts in class Doc
        Parameters:
        as - acct schema
        Returns:
        Fact