psdi.app.inventory.virtual

Class FldIssueCurrentItemIssueType

    • Constructor Detail

      • FldIssueCurrentItemIssueType

        public FldIssueCurrentItemIssueType(MboValue mbv)
                                     throws MXException
        Construct and attach to the mbo value
        Parameters:
        mbv -
        Throws:
        MXException
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        accept only ISSUE or RETURN type checks to make sure that the sum of the quantity being issued to an asset or work order and the sum of the total issued quantity (ISSUEDQTY in the SPAREPART table for the given item and asset combination) is less than or equal to the maximum permissible quantity (MAXISSUE in ITEM table). This validation is necessary when changing this transaction from a RETURN to an ISSUE.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Restore unit cost to default value when changing back to "issue". Allow unit cost to be edited when changing to "return"
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException