psdi.app.mr

Class FldMRLineDirectReq

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldMRLineDirectReq
    extends MboValueAdapter
    Behavior of the directreq field in the MRLine object.

    For the Reorder process to be invoked upon submitting an MR, mrline.directreq must be True. This is set to True under one of the following conditions:

    • itemnum is null (user entered only the item description), OR
    • there is no storeloc (default or otherwise) on the mrline, OR
    • there is a storeloc but there is no inventory record, OR
    • there is an inventory record but it is non-stocked (inventory.category is non-stocked).

    In the diagram below:
    1 = DirectReq is True and storeloc is not null
    2 = DirectReq is False

    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Update the fields affected by changing this field. For the Reorder process to be invoked upon submitting an MR, mrline.directreq must be True. This is set to True under one of the following conditions:
        • itemnum is null (user entered only the item description), OR
        • there is no storeloc (default or otherwise) on the mrline, OR
        • there is a storeloc but there is no inventory record, OR
        • there is an inventory record but it is non-stocked (inventory.category is non-stocked).
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException
      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Just check to see if the directreq field is not left blank. If a null value is entered in this field an exception is thrown.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MboValueAdapter
        Throws:
        MXException
        MXApplicationException("mr","directReqInvalid")
        java.rmi.RemoteException