psdi.app.common.purchasing

Class FldPurOrderQty

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldPurOrderQty
    extends MboValueAdapter
    This is the field validation class for the orderqty field of POLine/PRLine.
    OrderQty is the number of units ordered for the item or the number of hours if the line is a service.
    note: A service line need not necessarily have an orderqty. The user can also enter a lump sum directly in the linecost field.
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        The validation rountine is only for PO line. The quantity cannot be less than zero. This routine is only for partial receipts lines with quantity. If ordered quantity is less than the total received quantity, throw exception. Otherwise, update PO.Receipts and POLine.ReceiptsComplete flags if necessary.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MboValueAdapter
        Throws:
        MXApplicationException - (po, qtycannotlessthanreceived) is thrown if ordered quantity is less than the total received quantity
        MXException
        java.rmi.RemoteException
        See Also:
        PO.determineReceiptStatus()
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        When there is an orderqty set the linecost field except when the line is a service and both the orderQty and unitcost are null.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException