psdi.app.common.purchasing

Class FldPurLineCost

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldPurLineCost
    extends FldMatServLineCost
    This is the field validation class for linecost field of POLine/PRLine/QuotationLine(RFQ)
    This is the totalcost of the line item. It is calculated as unitcost * orderqty and is expressed in the PO/PR's currencycode.
    For a service item a lump sum amount is entered in this field.
    • Method Detail

      • validate

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

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        If there is a linecost set the unitcost and if the exchangerate2 of po/pr is not null set linecost2.

        Conditions:
        1. if the orderqty is not 0 set unitcost.
        2. if the exchangerate2 is not null set linecost2.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class FldMatServLineCost
        Throws:
        MXException
        java.rmi.RemoteException