Class MProduction

    • Field Detail

      • m_log

        protected static CLogger m_log
        Log
      • lineno

        protected int lineno
      • count

        protected int count
      • m_processMsg

        protected String m_processMsg
        Process Message
      • m_justPrepared

        protected boolean m_justPrepared
        Just Prepared Flag
    • Method Detail

      • completeIt

        public String completeIt()
        Description copied from interface: DocAction
        Complete Document
        Specified by:
        completeIt in interface DocAction
        Returns:
        new status (Complete, In Progress, Invalid, Waiting ..)
      • deleteLines

        public void deleteLines​(String trxName)
      • createLines

        public int createLines​(boolean mustBeStocked)
      • createLines

        public int createLines​(boolean mustBeStocked,
                               int PP_Product_BOM_ID)
      • createLines

        protected int createLines​(boolean mustBeStocked,
                                  MProduct finishedProduct,
                                  BigDecimal requiredQty,
                                  int PP_Product_BOM_ID)
      • beforeDelete

        protected boolean beforeDelete()
        Description copied from class: PO
        Executed before Delete operation.
        Overrides:
        beforeDelete in class PO
        Returns:
        true if record can be deleted
      • processIt

        public boolean processIt​(String processAction)
        Description copied from interface: DocAction
        Process document
        Specified by:
        processIt in interface DocAction
        Parameters:
        processAction - document action
        Returns:
        true if performed
      • unlockIt

        public boolean unlockIt()
        Description copied from interface: DocAction
        Unlock Document.
        Specified by:
        unlockIt in interface DocAction
        Returns:
        true if success
      • invalidateIt

        public boolean invalidateIt()
        Description copied from interface: DocAction
        Invalidate Document
        Specified by:
        invalidateIt in interface DocAction
        Returns:
        true if success
      • prepareIt

        public String prepareIt()
        Description copied from interface: DocAction
        Prepare Document
        Specified by:
        prepareIt in interface DocAction
        Returns:
        new status (In Progress or Invalid)
      • validateEndProduct

        public String validateEndProduct​(int M_Product_ID)
        Parameters:
        M_Product_ID -
        Returns:
        error message (if any)
      • isBom

        protected String isBom​(int M_Product_ID)
      • approveIt

        public boolean approveIt()
        Description copied from interface: DocAction
        Approve Document
        Specified by:
        approveIt in interface DocAction
        Returns:
        true if success
      • rejectIt

        public boolean rejectIt()
        Description copied from interface: DocAction
        Reject Approval
        Specified by:
        rejectIt in interface DocAction
        Returns:
        true if success
      • voidIt

        public boolean voidIt()
        Description copied from interface: DocAction
        Void Document
        Specified by:
        voidIt in interface DocAction
        Returns:
        true if success
      • closeIt

        public boolean closeIt()
        Description copied from interface: DocAction
        Close Document
        Specified by:
        closeIt in interface DocAction
        Returns:
        true if success
      • reverseCorrectIt

        public boolean reverseCorrectIt()
        Description copied from interface: DocAction
        Reverse Correction
        Specified by:
        reverseCorrectIt in interface DocAction
        Returns:
        true if success
      • reverse

        protected MProduction reverse​(boolean accrual)
      • addDescription

        public void addDescription​(String description)
        Add to Description
        Parameters:
        description - text
      • reverseAccrualIt

        public boolean reverseAccrualIt()
        Description copied from interface: DocAction
        Reverse Accrual
        Specified by:
        reverseAccrualIt in interface DocAction
        Returns:
        true if success
      • reActivateIt

        public boolean reActivateIt()
        Description copied from interface: DocAction
        Re-activate
        Specified by:
        reActivateIt in interface DocAction
        Returns:
        true if success
      • getSummary

        public String getSummary()
        Description copied from interface: DocAction
        Get Summary
        Specified by:
        getSummary in interface DocAction
        Returns:
        Summary of Document
      • getDocumentInfo

        public String getDocumentInfo()
        Description copied from interface: DocAction
        Get Document Info
        Specified by:
        getDocumentInfo in interface DocAction
        Returns:
        Type and Document No
      • createPDF

        public File createPDF()
        Description copied from interface: DocAction
        Create PDF
        Specified by:
        createPDF in interface DocAction
        Returns:
        file
      • getProcessMsg

        public String getProcessMsg()
        Description copied from interface: DocAction
        Get Process Message
        Specified by:
        getProcessMsg in interface DocAction
        Returns:
        clear text message
      • getDoc_User_ID

        public int getDoc_User_ID()
        Description copied from interface: DocAction
        Get Document Owner
        Specified by:
        getDoc_User_ID in interface DocAction
        Returns:
        AD_User_ID
      • getC_Currency_ID

        public int getC_Currency_ID()
        Description copied from interface: DocAction
        Get Document Currency
        Specified by:
        getC_Currency_ID in interface DocAction
        Returns:
        C_Currency_ID
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved
      • isStatusComplete

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