psdi.app.invoice

Class InvoiceMatch

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, InvoiceMatchRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class InvoiceMatch
    extends Mbo
    implements InvoiceMatchRemote
    Mbo object to represent InvoiceMatch. InvoiceMatch object is associated to the InvoiceLine in the sense that it contains one or more records that match to the receipt line for that invoice. The total quantity of the matched receipt cannot exceed the total received receipts of PO-POLine associated with this particular invoice.

    See Invoice Package description.

    The key attributes for this object are InvoiceNum and InvoiceLineNum.

    The attributes in this object are as follows:

    Attribute NameAttribute Description
    ConversionThe value used to convert the order unit to the issue unit, and vice versa.
    CostLineNumUnique system generated line item.
    InvoiceLineNumThe invoice line number for the line being matched.
    InvoiceNumIdentifier of the invoice.
    LineCostThe cost of the line in base currency 1.
    MatRecTransIDThe identifier used to match invoice lines to material receipts.
    OrgIDOrganization Identifier.
    POLineNumThe line number on the purchase order(PO) that this invoice matches.
    PONumPurchase Order(PO) this invoice is matched to. Foreign key to PO.
    QuantityQuantity of the matched item this invoice refers to.
    ServRecTransIDThe identifier used to match invoice lines to service receipts.
    SiteIDSite Identifier.
    TransDateThe date and time of the receipt transaction this invoice is matched to.
    TransTypeThe type of transaction to which this invoice is matched.
    VendorVendor of the invoice. Foreign key to Company.
    • Constructor Detail

      • InvoiceMatch

        public InvoiceMatch(MboSet ms)
                     throws java.rmi.RemoteException
        Construct the InvoiceMatch object
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        This is called when a new invoice match is added to the InvoiceMatch MboSet collection. The field defaults and field flags are set here. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        costlinenum1.0
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • getReceipt

        public ReceiptMboRemote getReceipt()
                                    throws MXException,
                                           java.rmi.RemoteException
        Get the receipt corressponding to this match. This case takes care of getting all the receipts for this match even if they are not in the database.
        Specified by:
        getReceipt in interface InvoiceMatchRemote
        Returns:
        ReceiptMboRemote The remote of the receipt mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • setReceipt

        public void setReceipt(ReceiptMboRemote receiptMboRemote)
                        throws MXException,
                               java.rmi.RemoteException
        Set the matching receipt reference to the passed in receipt (ReceiptMboRemote).
        Specified by:
        setReceipt in interface InvoiceMatchRemote
        Parameters:
        receiptMboRemote - The receipt mbo remote to which the reference is to be set.
        Throws:
        MXException
        java.rmi.RemoteException