psdi.app.invoice

Class InvoiceTrans

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


    public class InvoiceTrans
    extends Mbo
    implements InvoiceTransRemote
    Mbo object to represent InvoiceTrans. InvoiceTrans object represents the transactions written during invoice approval. These may be variance transactions, tax transactions, or total transactions.

    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
    CostLineNumUnique system generated line item.
    CurrencyCodeThe currency of the invoice. Foreign key to Currency.
    CurrencyLineCostThe cost of the line in the currency of the invoice.
    EnterByThe name or user ID of the person who created the transaction.
    ExchangeRateCurrency exchange rate (base currency 1) applied to the transaction.
    ExchangeRate2Currency exchange rate (base currency 2) applied to the transaction.
    ExternalRefIDExternal Reference ID.
    FinancialPeriodThe open financial period during which the transaction was created.
    GLCreditAcctThe general ledger account code to be credited for this transaction.
    GLDebitAcctThe general ledger account code to be debited for this transaction.
    InvoiceLineNumThe invoice line number from which the transaction was created.
    InvoiceNumIdentifier of the invoice.
    LineCostThe cost of the line in base currency 1.
    LineCost2The cost of the line in base currency 2.
    OrgIDOrganization Identifier.
    OwnerSysIDOwner system ID.
    SenderSysIDColumn used by ERP-Integration (APIs).
    SiteIDSite Identifier.
    SourceSysIDSource system ID.
    TransDateDate and time the transaction was created.
    TransTypeThe type of transaction: TOTAL, INVCEVAR, PRICEVAR, TAX1, TAX2, TAX3, TAX4, TAX5.
    VendorVendor of the invoice. Foreign key to Company.
    • Constructor Detail

      • InvoiceTrans

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        This is called when a new invoice is added to the InvoiceTrans 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
        transdateCurrent date
        enterbyCurrent username
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Pre-save validation method. Based on a maxvar value check if the GL debit and credit accounts are required for this transaction.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXApplicationException - (financial, GLRequiredForTrans) The debit and credit GL accounts require a value.
        MXException
        java.rmi.RemoteException