psdi.app.inventory

Class InvLot

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


    public class InvLot
    extends Mbo
    implements InvLotRemote
    MBO object to represent InvLot. This object is instantiated from an InvBalances object to associate a Shelflife and/or Useby/expiration date with a particular lotnum. This Invlot object can then be associated with any unique combination of itemnum, location, binnum and lotnum in an InvBalances object.

    See Inventory Package description.

    This is a site level object.

    The key attributes in this object are as follows: SiteId, LotNum

    The persistent attributes in this object are as follows:

    Attribute NameDescription
    ItemnumIdentifier of the itemnum for this object.
    LocationIdentifier of the storeroom for this object.
    LotNumLot identification number used to track whether or not lotted Inventory items have expired, that is, to see if their use by date has passed.
    ManufacturerManufacturer identification number. Manufacturer need not exist in Companies table. However, the manufacturer can be selected from the Companies table.
    MfgLotNumManufacturer's lotnum associated with the lotnum.
    OrgIdIdentifier of the organization for this object.
    ShelfLifeShelf life in days that applies to all items with this lotnum.
    SiteIdIdentifier of the site for this object.
    UseByThe expiration date for items with this lotnum. After this expiration date, items with this lotnum will be considered expired and deducted from availability. If an expirarion date is not provided but a Shelflife value is provided, the Useby/expiration date will be calculated by adding the Shelflife to today's date.
    VendorVendor identification number. Vendor must exist in Companies table.
    • Constructor Detail

      • InvLot

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

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

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        sets the itemnum,location and itemsetid attributes. If the object creating this InvLot is a MatRecTrans, the above attributes are set to the MatRecTrans' itemnum,tostoreloc and itemsetid attributes respectively; if the creator is InvBalances, the attributes are set to the InvBalances' itemnum,location and itemsetid respectively.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Determines whether this record can be deleted.
        An InvLot record can't be deleted if an InvBalance mbo currently relies upon its existence.
        Overrides:
        canDelete in class Mbo
        Parameters:
        none -
        Throws:
        MXAccessException -
        GROUPKEYREASON
        inventorynoDeleteInvLot if the inventory balance set is not empty
        MXException
        java.rmi.RemoteException