Class MDepositBatch

    • Constructor Detail

      • MDepositBatch

        public MDepositBatch​(Properties ctx,
                             int C_DepositBatch_ID,
                             String trxName)
        Create and Load existing Persistent Object
        Parameters:
        ctx - context
        C_DepositBatch_ID - The unique ID of the object
        trxName - transaction name
      • MDepositBatch

        public MDepositBatch​(Properties ctx,
                             ResultSet rs,
                             String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MDepositBatch

        public MDepositBatch​(MDepositBatch original)
        Copy Constructor. Dos not copy: Dates/Period
        Parameters:
        original - original
    • Method Detail

      • setClientOrg

        public void setClientOrg​(int AD_Client_ID,
                                 int AD_Org_ID)
        Overwrite Client/Org if required
        Overrides:
        setClientOrg in class PO
        Parameters:
        AD_Client_ID - client
        AD_Org_ID - org
      • setDateAcct

        public void setDateAcct​(Timestamp DateAcct)
        Set Accounting Date. Set also Period if not set earlier
        Parameters:
        DateAcct - date
      • unlockIt

        public boolean unlockIt()
        Unlock Document.
        Returns:
        true if success
      • invalidateIt

        public boolean invalidateIt()
        Invalidate Document
        Returns:
        true if success
      • voidIt

        public boolean voidIt()
        Void Document.
        Returns:
        false
      • getDocumentInfo

        public String getDocumentInfo()
        Get Document Info
        Returns:
        document info (untranslated)
      • createPDF

        public File createPDF()
        Create PDF
        Returns:
        File or null
      • createPDF

        public File createPDF​(File file)
        Create PDF file
        Parameters:
        file - output file
        Returns:
        file if success
      • getProcessMsg

        public String getProcessMsg()
        Get Process Message
        Returns:
        clear text error message
      • getDoc_User_ID

        public int getDoc_User_ID()
        Get Document Owner (Responsible)
        Returns:
        AD_User_ID (Created By)
      • getApprovalAmt

        public BigDecimal getApprovalAmt()
        Get Document Approval Amount
        Returns:
        DR amount
      • afterDelete

        protected boolean afterDelete​(boolean success)
        After Delete
        Overrides:
        afterDelete in class PO
        Parameters:
        success - success
        Returns:
        success
      • getLines

        public MDepositBatchLine[] getLines()
        Get Deposit Batch Lines
        Returns:
        Array of lines
      • isComplete

        public boolean isComplete()
        Document Status is Complete or Closed
        Returns:
        true if CO, CL or RE