Class Doc_GLJournal

java.lang.Object
org.compiere.acct.Doc
org.compiere.acct.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 Details

    • m_PostingType

      protected String m_PostingType
      Posting Type
    • m_C_AcctSchema_ID

      protected int m_C_AcctSchema_ID
  • Constructor Details

    • Doc_GLJournal

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

    • 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 GL journal lines
      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