Class Doc_Requisition


  • public class Doc_Requisition
    extends Doc
    Post Order Documents.
       Table:              M_Requisition
       Document Types:     POR (Requisition)
     
    Version:
    $Id: Doc_Requisition.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $
    Author:
    Jorg Janke
    • Constructor Detail

      • Doc_Requisition

        public Doc_Requisition​(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
      • 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 POR.
         Reservation
                Expense         CR
                Offset                  DR
         
        Specified by:
        createFacts in class Doc
        Parameters:
        as - accounting schema
        Returns:
        Fact