Class MRequisition

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_M_Requisition, I_Persistent, DocAction, Evaluatee

public class MRequisition extends X_M_Requisition implements DocAction
Requisition Model
Version:
$Id: MRequisition.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke, victor.perez@e-evolution.com, e-Evolution http://www.e-evolution.com
  • FR [ 2520591 ] Support multiples calendar for Org, red1
  • FR [ 2214883 ] Remove SQL code and Replace for Query, Teo Sarca, www.arhipac.ro
  • FR [ 2744682 ] Requisition: improve error reporting
  • See Also:
    • Constructor Details

      • MRequisition

        public MRequisition(Properties ctx, String M_Requisition_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        M_Requisition_UU - UUID key
        trxName - Transaction
      • MRequisition

        public MRequisition(Properties ctx, int M_Requisition_ID, String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        M_Requisition_ID - id
      • MRequisition

        public MRequisition(Properties ctx, ResultSet rs, String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
    • Method Details

      • getLines

        public MRequisitionLine[] getLines()
        Get Requisition Lines
        Returns:
        array of requisition lines
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class X_M_Requisition
        Returns:
        info
      • getDocumentInfo

        public String getDocumentInfo()
        Get Document Info
        Specified by:
        getDocumentInfo in interface DocAction
        Returns:
        document info
      • createPDF

        public File createPDF()
        Create PDF
        Specified by:
        createPDF in interface DocAction
        Returns:
        File or null
      • createPDF

        public File createPDF(File file)
        Create PDF file
        Parameters:
        file - output file
        Returns:
        not implemented, always return null
      • setM_PriceList_ID

        public void setM_PriceList_ID()
        Set default PriceList
      • beforeSave

        protected boolean beforeSave(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true
      • 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)
        Process document
        Specified by:
        processIt in interface DocAction
        Parameters:
        processAction - document action
        Returns:
        true if performed
      • unlockIt

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

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

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

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

        public boolean rejectIt()
        Reject Approval
        Specified by:
        rejectIt in interface DocAction
        Returns:
        true if success
      • completeIt

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

        public boolean voidIt()
        Void Document. Same as Close.
        Specified by:
        voidIt in interface DocAction
        Returns:
        true if success
      • closeIt

        public boolean closeIt()
        Close Document. Cancel not delivered Qunatities
        Specified by:
        closeIt in interface DocAction
        Returns:
        true if success
      • reverseCorrectIt

        public boolean reverseCorrectIt()
        Reverse Correction
        Specified by:
        reverseCorrectIt in interface DocAction
        Returns:
        not implemented, always return false
      • reverseAccrualIt

        public boolean reverseAccrualIt()
        Reverse Accrual
        Specified by:
        reverseAccrualIt in interface DocAction
        Returns:
        not implemented, always return false
      • reActivateIt

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

        public String getSummary()
        Get Summary
        Specified by:
        getSummary in interface DocAction
        Returns:
        Summary of Document
      • getProcessMsg

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

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

        public int getC_Currency_ID()
        Get Document Currency
        Specified by:
        getC_Currency_ID in interface DocAction
        Returns:
        C_Currency_ID
      • getApprovalAmt

        public BigDecimal getApprovalAmt()
        Get Document Approval Amount
        Specified by:
        getApprovalAmt in interface DocAction
        Returns:
        amount
      • getUserName

        public String getUserName()
        Get User Name
        Returns:
        user name
      • isComplete

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