Class MMatchInv

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

public class MMatchInv extends X_M_MatchInv
Match Invoice (Receipt<>Invoice) Model.
  Accounting:
  - Not Invoiced Receipts (relief)
  - IPV
        
Version:
$Id: MMatchInv.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1926113 ] MMatchInv.getNewerDateAcct() should work in trx, victor.perez@e-evolution.com, e-Evolution http://www.e-evolution.com
  • FR [ 2520591 ] Support multiples calendar for Org, Bayu Cahya, Sistematika
  • BF [ 2240484 ] Re MatchingPO, MMatchPO doesn't contains Invoice info
  • See Also:
    • Constructor Details

      • MMatchInv

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

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

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

        public MMatchInv(MInvoiceLine iLine, Timestamp dateTrx, BigDecimal qty)
        Invoice Line Constructor
        Parameters:
        iLine - invoice line
        dateTrx - optional date
        qty - matched quantity
    • Method Details

      • get

        public static MMatchInv[] get(Properties ctx, int M_InOutLine_ID, int C_InvoiceLine_ID, String trxName)
        Get InOut-Invoice Matches
        Parameters:
        ctx - context
        M_InOutLine_ID - shipment
        C_InvoiceLine_ID - invoice
        trxName - transaction
        Returns:
        array of matches
      • getInvoiceLine

        public static MMatchInv[] getInvoiceLine(Properties ctx, int C_InvoiceLine_ID, String trxName)
        Get InOut Matches for InvoiceLine
        Parameters:
        ctx - context
        C_InvoiceLine_ID - invoice line
        trxName - transaction
        Returns:
        array of matches
      • getInOut

        public static MMatchInv[] getInOut(Properties ctx, int M_InOut_ID, String trxName)
        Get Invoice Matches for InOut
        Parameters:
        ctx - context
        M_InOut_ID - material receipt
        trxName - transaction
        Returns:
        array of matches
      • getInvoice

        public static MMatchInv[] getInvoice(Properties ctx, int C_Invoice_ID, String trxName)
        Get InOut Matches for Invoice
        Parameters:
        ctx - context
        C_Invoice_ID - invoice
        trxName - transaction
        Returns:
        array of matches
      • beforeSave

        protected boolean beforeSave(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true
      • afterSave

        protected boolean afterSave(boolean newRecord, boolean success)
        Description copied from class: PO
        Called after Save for Post-Save Operation
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new record
        success - true if save operation was success
        Returns:
        if save was a success
      • getNewerDateAcct

        public Timestamp getNewerDateAcct()
        Get the newer Date Acct between invoice and shipment
        Returns:
        date or null
      • beforeDelete

        protected boolean beforeDelete()
        Before Delete
        Overrides:
        beforeDelete in class PO
        Returns:
        true if acct was deleted
      • afterDelete

        protected boolean afterDelete(boolean success)
        After Delete
        Overrides:
        afterDelete in class PO
        Parameters:
        success - success
        Returns:
        success
      • deleteMatchInvCostDetail

        protected String deleteMatchInvCostDetail()
        Delete cost detail records for M_MatchInv
        Returns:
        empty string
      • getInOutLine

        public static MMatchInv[] getInOutLine(Properties ctx, int M_InOutLine_ID, String trxName)
        Get Invoice Matches for InOutLine
        Parameters:
        ctx - context
        M_InOutLine_ID - shipment
        trxName - transaction
        Returns:
        array of matches
      • reverse

        public boolean reverse(Timestamp reversalDate)
        Reverse this MatchInv document.
        Parameters:
        reversalDate -
        Returns:
        true if reversed
      • getM_InOutLine

        public MInOutLine getM_InOutLine() throws RuntimeException
        Specified by:
        getM_InOutLine in interface I_M_MatchInv
        Overrides:
        getM_InOutLine in class X_M_MatchInv
        Throws:
        RuntimeException
      • isReversal

        public boolean isReversal()
        Returns:
        true if this is created to reverse another match invoice document