psdi.app.inventory.virtual

Class FldKitQuantity

    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        quantity can not be 0, and quantity cannot exceed the possible quantity.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MboValueAdapter
        Throws:
        MXApplicationException("inventory","notLessThanOrEqualZero") - when Kit.Quantity is not greater than zero.
        MXApplicationException("inventory","kitMakeQtyNotMoreThanPossibleQty") - when assembling one or more kits, and the Kit.Quantity exceeds the PossibleQuantity
        MXApplicationException("inventory","kitBreakQtyNotMoreThanCurBal") - when disassembling one or more kits, and the Kit.Quantity exceeds the Kit.CurBal.
        MXException
        java.rmi.RemoteException
        See Also:
        Kit.getKitAction()
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        update the quantities of each kit component required as the user changes the quantity of kits to create. validate() ensures that available quantities will not be exceeded by not allowing user to enter a kit Quantity that exceeds the already-calculated PossibleQuantity.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException