psdi.app.inventory

Class FldMatRecTransDisplayUnitCost

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldMatRecTransDisplayUnitCost
    extends MboValueAdapter
    Field validation class for the non-persistent column MatRecTrans.DISPLAYUNITCOST This non-persistent column serves the gui unitcost. Before the MatRecTrans is saved, unitcost retains the "From" storerooms unit cost. The attribute displayunitcost maintains the current calculate unit cost for the "To" storeroom. When the newly added transfer MatrecTrans is saved, displayunitcost is copied to unitcost. matrectrans.displayunitcost = matrectrans.unitcost / matrectrans.conversion.
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Update the fields affected by changing this field !! matrectrans.unitcost= display unitcost * matrectrans.conversion Action should really only be called when clearing ItemNum. Otherwise the effect is the same as overwriting the "From" storerooms unit cost.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException