psdi.app.common.purchasing

Class FldPurTotalCost

  • All Implemented Interfaces:
    MboConstants, MboValueListener
    Direct Known Subclasses:
    FldInvoiceTotalCost


    public class FldPurTotalCost
    extends MboValueAdapter
    This is the field class validation for TotalCost field of PO/PR/Invoice. TotalCost is the sum of unitcost all POLines/PRLines/InvoiceLines plus taxes and standard service charges specified. The totalcost is expressed in the PO/PR/Invoice's currencycode.
    • Constructor Detail

      • FldPurTotalCost

        public FldPurTotalCost(MboValue mbv)
                        throws MXException,
                               java.rmi.RemoteException
        Call this constructor if the name of the field is not "totalbasecost" or "basetotalcost"
        Throws:
        MXException
        java.rmi.RemoteException
      • FldPurTotalCost

        public FldPurTotalCost(MboValue mbv,
                               java.lang.String attribName)
                        throws MXException,
                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        If the TotalCost is changed get the exchangerate between the PO/PR's currencycode and the basecurrency and recalculate and set totalbasecost(basetotalcost if the mbo is Invoice).

        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException