psdi.app.inventory

Class InvTrans

  • All Implemented Interfaces:
    java.rmi.Remote, InvTransRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class InvTrans
    extends Mbo
    implements InvTransRemote
    Mbo object to represent InvTrans. This object writes one of eight different Inventory transaction types: standard receipt adjustment; balance reconciliation; current balance adjustment; physical count adjustment; standard cost adjustment; average cost adjustment; capitalized cost adjustment; insertion of a new item. All inventory transactions are adjustments with the exception of INSERTITEM. InvTrans objects are read-only after they are added to the database.

    See Inventory Package description.

    The key attribute(s) in this object are as follows: Invtransid

    The persistent attributes in this object are as follows:

    Attribute NameDescription
    Binnumbin within the storeroom that holds the items subject to the adjustment transaction. The default is the binnum from the Inventory object for this itemnum - storeroom combination.
    Conversionconversion factor between the Issue and Order Units of Measure(UOM)
    Curbalpost-transaction current balance at this storeroom
    Enterbyname of user entering the transaction
    Exhangerate2exchange rate for a second base currency
    Externalrefidused by MAXIMO Integration Gateway (MIG) for interface to external financial system
    Financialperiodfinancial period in which the transaction takes place
    GLCreditAcctGL account credited. This depends on the Transtype.
    GLDebitAcctGL account debited. This depends on the Transtype.
    Invtransidprimary key for table
    Itemnuminventory item number
    ItemSetIDIdentifier of the itemset identifier for this object.
    Linecostcost of transaction
    Linecost2line cost based on Exchangerate2, that is, Linecost2 = Linecost * Exchangerate2
    Lotnumlot that holds the items subject to the adjustment transaction. Valid lots belong to those objects from the InvBalances table that have the current Itemnum - Location - Binnum combination.
    Matrectransidforeign key to matrectrans record from which this Invtrans object was generated
    Matusetransidused when breaking an inventory kit into its components to record a variance between the Kit's default issue cost and the sum of the component costs at the time the kit is disassembled.
    Memofree-form additional information user may supply regarding transaction
    Newcostpost-cost adjustment cost. Newcost applies only to cost adjustment transactions.
    Oldcostpre-cost adjustment cost. Oldcost applies only to cost adjustment transactions.
    OrgIdIdentifier of the organization for this InvTrans. Foreign key to Organizations.
    Ownersysidused by MAXIMO Integration Gateway (MIG) for interface to external financial system
    Physcntpost-transaction physical count at this storeroom
    Quantitynumber of items added or subtracted in the transaction. Quantity will always be zero for cost adjustment transactions. This number is positive when the adjustment adds items and negative when it subtracts items.
    Sendersysidused by MAXIMO Integration Gateway (MIG) for interface to external financial system
    SiteIdIdentifier of the site for this InvTrans. Foreign key to Site.
    Sourcesysidused by MAXIMO Integration Gateway (MIG) for interface to external financial system
    Storelocstoreroom location
    Transdateinventory transaction date and time
    Transtypeone of eight different Inventory transaction types from the ITTRANS value list. All inventory transactions are adjustments with the exception of INSERTITEM. Valid translated values are:

    Transaction
    TypeDescriptionGLDebitAcctGLCreditAcct
    AVGCSTADJaverage cost adjustmentINVENTORY.CONTROLACCINVENTORY.INVCOSTADJACC
    CAPCSTADJ1capitalized cost adjustmentfrom UI ChangeCapStatus dialog -
    may be null
    INVENTORY.CONTROLACC
    CAPCSTADJ2capitalized cost adjustmentLOCATIONS.CONTROLACCINVENTORY.CONTROLACC3
    CURBALADJcurrent balance adjustmentINVENTORY.CONTROLACCINVENTORY.SHRINKAGEACC
    INSERTITEMnew item insertedINVENTORY.CONTROLACCINVENTORY.CONTROLACC
    PCOUNTADJphysical count adjustmentINVENTORY.SHRINKAGEACCINVENTORY.SHRINKAGEACC
    RECBALADJinvbalance record reconciliationINVENTORY.CONTROLACCINVENTORY.SHRINKAGEACC
    STDCSTADJstandard cost adjustmentINVENTORY.CONTROLACCINVENTORY.INVCOSTADJACC
    STDRECADJstandard receipt adjustmentLOCATIONS.RECEIPTVARACCINVENTORY.CONTROLACC
    1 - when going from non-capitalized to capitalized
    2 - when going from capitalized to non-capitalized
    3 - INVENTORY.CONTROLACC will be the value that was entered in the ChangeCapStatus UI as the GL Capital Account when the item was made to be capitalized. This could be a null value.
    • Constructor Detail

      • InvTrans

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

      • init

        public void init()
                  throws MXException
        Initialize the InvTrans object
        Overrides:
        init in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Sets defaults for a new InvTrans Record.
        Overrides standard package method.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Parameters:
        none -
        Throws:
        MXApplicationException -
        GROUPKEYREASON
        inventoryinvTransNoAddif the owner is not "INVBALANCES", "INVENTORY", "MATRECTRANS", or "ITEM"
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Checks to see if this object can be deleted throws MXException if it cannot be deleted
        Overrides:
        canDelete in class Mbo
        Parameters:
        none -
        Throws:
        MXApplicationException -
        GROUPKEYREASON
        inventoryinvtransCannotDeleteif it cannot be deleted
        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
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        save() save() calls method to generate the invoice for comsumption of consignment items.
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • createInvoiceOnConsumption

        public void createInvoiceOnConsumption()
                                        throws MXException,
                                               java.rmi.RemoteException
        save() This method will call the invoice service method to generate the invoice if the invoice generation type is set to Consumption in the inventory level for consinment items and will be called from save().
        Throws:
        MXException
        java.rmi.RemoteException