Class MInOutConfirm

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

public class MInOutConfirm extends X_M_InOutConfirm implements DocAction
Shipment Confirmation Model
Version:
$Id: MInOutConfirm.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, www.arhipac.ro
  • BF [ 2800460 ] System generate Material Receipt with no lines https://sourceforge.net/p/adempiere/bugs/1928/, Teo Sarca, teo.sarca@gmail.com
  • BF [ 2993853 ] Voiding/Reversing Receipt should void confirmations https://sourceforge.net/p/adempiere/bugs/2395/
  • FR [ 2994115 ] Add C_DocType.IsPrepareSplitDoc flag https://sourceforge.net/p/adempiere/feature-requests/967/
  • See Also:
    • Constructor Details

      • MInOutConfirm

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

        public MInOutConfirm(Properties ctx, int M_InOutConfirm_ID, String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        M_InOutConfirm_ID - id
        trxName - transaction
      • MInOutConfirm

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

        public MInOutConfirm(MInOut ship, String confirmType)
        Parent Constructor
        Parameters:
        ship - shipment
        confirmType - confirmation type
    • Method Details

      • create

        public static MInOutConfirm create(MInOut ship, String confirmType, boolean checkExisting)
        Create Confirmation or return existing one
        Parameters:
        ship - shipment
        confirmType - confirmation type
        checkExisting - if false, new confirmation is created
        Returns:
        Confirmation
      • getLines

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

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

        public String getConfirmTypeName()
        Get Name of ConfirmType
        Returns:
        confirm type
      • toString

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

        public String getDocumentInfo()
        Get Document Info
        Specified by:
        getDocumentInfo in interface DocAction
        Returns:
        document info (untranslated)
      • 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
      • setIsApproved

        public void setIsApproved(boolean IsApproved)
        Set Approved and update description (if IsApproved=true)
        Specified by:
        setIsApproved in interface I_M_InOutConfirm
        Overrides:
        setIsApproved in class X_M_InOutConfirm
        Parameters:
        IsApproved - approval
      • 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.
        Specified by:
        voidIt in interface DocAction
        Returns:
        false
      • closeIt

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

        public boolean reverseCorrectIt()
        Reverse Correction
        Specified by:
        reverseCorrectIt in interface DocAction
        Returns:
        false
      • reverseAccrualIt

        public boolean reverseAccrualIt()
        Reverse Accrual - none
        Specified by:
        reverseAccrualIt in interface DocAction
        Returns:
        false
      • reActivateIt

        public boolean reActivateIt()
        Re-activate
        Specified by:
        reActivateIt in interface DocAction
        Returns:
        false
      • 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
      • isComplete

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