Class MTimeExpense

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

public class MTimeExpense extends X_S_TimeExpense implements DocAction
Time + Expense Model
Version:
$Id: MTimeExpense.java,v 1.4 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke, victor.perez@e-evolution.com, e-Evolution http://www.e-evolution.com
  • FR [ 2520591 ] Support multiples calendar for Org
  • See Also:
    • Constructor Details

      • MTimeExpense

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

        public MTimeExpense(Properties ctx, int S_TimeExpense_ID, String trxName)
        Default Constructor
        Parameters:
        ctx - context
        S_TimeExpense_ID - id
        trxName - transaction
      • MTimeExpense

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

      • getLines

        public MTimeExpenseLine[] getLines()
        Get Lines Convenience Wrapper
        Returns:
        array of lines
      • getLines

        public MTimeExpenseLine[] getLines(boolean requery)
        Get Lines
        Parameters:
        requery - true to reload from DB
        Returns:
        array of lines
      • addDescription

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

        public int getM_Locator_ID()
        Get Default Locator (from Warehouse)
        Returns:
        locator
      • setProcessed

        public void setProcessed(boolean processed)
        Set Processed. Propagate to Lines.
        Specified by:
        setProcessed in interface I_S_TimeExpense
        Overrides:
        setProcessed in class X_S_TimeExpense
        Parameters:
        processed - processed
      • 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
      • 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 Quantities.
        Specified by:
        closeIt in interface DocAction
        Returns:
        true if success
      • reverseCorrectIt

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

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

        public boolean reActivateIt()
        Re-activate.
        Not implemented, always return false.
        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 (Responsible)
        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 of price list
      • isComplete

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