psdi.app.inventory

Class InvLifoFifoCost

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


    public class InvLifoFifoCost
    extends Mbo
    implements InvLifoFifoCostRemote, java.lang.Comparable
    Mbo object to represent Inventory Lifo Fifo Cost.

    This is a Organization level object.

    The key attributes in this object are as follows: SiteId, ItemSetID, ItemNum, Location, ConditionCode

    See Inventory Package description.

    The attributes in this object are as follows:

    Attribute NameDescription
    OrgIDIdentifier of the organization for this item.
    ItemNumThe Item Number.
    ItemSetIDItem Set Identifier.
    LocationStoreroom.
    ConditionCode Condition Code of the received item.
    CostTypeType of receipt cost, LIFO or FIFO.
    CostDateThe receipt date for this cost record.
    UnitCostNon-Persistent column to represent lifo/fifo unit cost.
    QuantityThe lifo/fifo receipt quantity.
    RefObjectThe object that created the lifo/fifo cost record: RECEIPT, TRANSFER, RETURN, ADJUSTMENT.
    RefObjectIDID for the related object transaction that created the lifo/fifo cost record.
    • Constructor Detail

      • InvLifoFifoCost

        public InvLifoFifoCost(MboSet ms)
                        throws java.rmi.RemoteException
        Constructor for the InvLifoFifoCost Object
        Parameters:
        ms -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        add() Provides defaults for a new InvCost Record. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        unitcost0(zero)
        quantity0(zero)
        costdatecurrent date

        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException - MXAccessException thrown when the the user does not have privileges to add a cost to a storeroom.
        java.rmi.RemoteException
      • init

        public void init()
                  throws MXException
        Initialization rountine.
        Set field flags for both always readonly attributes as well as those fields which are editable only during insert.
        Overrides:
        init in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        save() If the quantity is zero, delete the record.
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • compareTo

        public int compareTo(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object