psdi.app.invoice

Class FldInvoiceCostUnitCost

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceCostUnitCost
    extends MboValueAdapter
    InvoiceCost.unitcost validation class: Sets the invoice cost linecost equals to unitcost by quantity if both are not null.
    • Constructor Detail

      • FldInvoiceCostUnitCost

        public FldInvoiceCostUnitCost(MboValue mbv)
        Construct and attach to the mbo value
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        If the invoice cost unitcost and quantity are not null set the linecost equal to unitcost by quantity. Also if unitcost and quantity are both equal to 0 set unitcost to be read/only.

        Conditions :
        1. If the quantity is not null and if the unitcost is not null set the value of linecost=quantity*unitcost
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException