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:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • 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 Inv Matches for InvoiceLine
        Parameters:
        ctx - context
        C_InvoiceLine_ID - invoice
        trxName - transaction
        Returns:
        array of matches
      • getInOut

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

        public static MMatchInv[] getInvoice​(Properties ctx,
                                             int C_Invoice_ID,
                                             String trxName)
        Get Inv 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 later Date Acct from invoice or 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()
      • getInOutLine

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

        public boolean reverse​(Timestamp reversalDate)
        Reverse MatchPO.
        Parameters:
        reversalDate -
        Returns:
        message
        Throws:
        Exception