Interface DocAction

    • Method Detail

      • setDocStatus

        void setDocStatus​(String newStatus)
        Set Doc Status
        Parameters:
        newStatus - new Status
      • getDocStatus

        String getDocStatus()
        Get Doc Status
        Returns:
        Document Status
      • processIt

        boolean processIt​(String action)
                   throws Exception
        Process document
        Parameters:
        action - document action
        Returns:
        true if performed
        Throws:
        Exception
      • unlockIt

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

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

        String prepareIt()
        Prepare Document
        Returns:
        new status (In Progress or Invalid)
      • approveIt

        boolean approveIt()
        Approve Document
        Returns:
        true if success
      • rejectIt

        boolean rejectIt()
        Reject Approval
        Returns:
        true if success
      • completeIt

        String completeIt()
        Complete Document
        Returns:
        new status (Complete, In Progress, Invalid, Waiting ..)
      • voidIt

        boolean voidIt()
        Void Document
        Returns:
        true if success
      • closeIt

        boolean closeIt()
        Close Document
        Returns:
        true if success
      • reverseCorrectIt

        boolean reverseCorrectIt()
        Reverse Correction
        Returns:
        true if success
      • reverseAccrualIt

        boolean reverseAccrualIt()
        Reverse Accrual
        Returns:
        true if success
      • reActivateIt

        boolean reActivateIt()
        Re-activate
        Returns:
        true if success
      • getSummary

        String getSummary()
        Get Summary
        Returns:
        Summary of Document
      • getDocumentNo

        String getDocumentNo()
        Get Document No
        Returns:
        Document No
      • getDocumentInfo

        String getDocumentInfo()
        Get Document Info
        Returns:
        Type and Document No
      • createPDF

        File createPDF()
        Create PDF
        Returns:
        file
      • getProcessMsg

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

        int getDoc_User_ID()
        Get Document Owner
        Returns:
        AD_User_ID
      • getC_Currency_ID

        int getC_Currency_ID()
        Get Document Currency
        Returns:
        C_Currency_ID
      • getApprovalAmt

        BigDecimal getApprovalAmt()
        Get Document Approval Amount
        Returns:
        amount
      • getAD_Client_ID

        int getAD_Client_ID()
        Get Document Client
        Returns:
        AD_Client_ID
      • getAD_Org_ID

        int getAD_Org_ID()
        Get Document Organization
        Returns:
        AD_Org_ID
      • getDocAction

        String getDocAction()
        Get Doc Action
        Returns:
        Document Action
      • save

        boolean save()
        Save Document
        Returns:
        true if saved
      • getCtx

        Properties getCtx()
        Get Context
        Returns:
        context
      • get_ID

        int get_ID()
        Get ID of record
        Returns:
        ID
      • get_Table_ID

        int get_Table_ID()
        Get AD_Table_ID
        Returns:
        AD_Table_ID
      • get_Logger

        CLogger get_Logger()
        Get Logger
        Returns:
        logger
      • get_TrxName

        String get_TrxName()
        Get Transaction
        Returns:
        trx name