psdi.app.inventory.virtual

Class Kit

    • Constructor Detail

      • Kit

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

      • getKitAction

        protected java.lang.String getKitAction()
                                         throws MXException,
                                                java.rmi.RemoteException
        returns KITMAKE or KITBREAK depending on whether this Kit has been created to assemble or disassemble a kit.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        FldKitQuantity.validate()
      • init

        public void init()
                  throws MXException
        sets the READONLY flag for itemnum, itemsetid, location, possiblequantity, unitcost and curbal to true; sets the REQUIRED flag for quantity to true
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • getPossibleQuantity

        public int getPossibleQuantity()
                                throws MXException,
                                       java.rmi.RemoteException
        returns the possible quantity of kits that can be assembled. The quantity of each component needed is determined by multiplying each components' quantity (ItemStruct.Quantity) by the number of Kits being assembled (Kit.Quantity). Each result is then compared to the current balance of each component across all bins. The possible quantity for a Kit is the smallest result that exceeds or is equal to the component's current balance.
        Returns:
        possible quantity
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Inventory.calculateAvailableQty()
      • updateKitComponentQuantities

        protected void updateKitComponentQuantities(double kitQtyRequested)
                                             throws MXException,
                                                    java.rmi.RemoteException
        based on the value provided for Kit.Quantity, updates the quantity required for each component in the Kit.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        FldKitQuantity.action()