psdi.app.invoice

Class FldInvoiceLineLoadedCostForUI

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceLineLoadedCostForUI
    extends MboValueAdapter
    InvoiceLine.LoadedCostForUI is a non-persistent field that corresponding with LoadedCost. Loaded cost field always displays positive number on the screen. If it's a CREDIT type of invoice, LoadedCost is stored as negative number in database. When initialized the field, LoadedCostForUI needs to display positive number on screen (LoadedCost * -1).
    • Constructor Detail

      • FldInvoiceLineLoadedCostForUI

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

      • initValue

        public void initValue()
                       throws MXException,
                              java.rmi.RemoteException
        If it's a CREDIT type of invoice, needs to display positive loased cost on screen. Set LoadedCostForUI equal to LoadedCost * -1.
        Specified by:
        initValue in interface MboValueListener
        Overrides:
        initValue in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException