psdi.app.invoice

Class FldInvoiceLineLoadedCost

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceLineLoadedCost
    extends MboValueAdapter
    InvoiceLine.LoadedCost validation class: Sets the invoice line loaded cost. Loaded cost field won't display on the screen.It will set LoadedCostForUI field. 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

      • FldInvoiceLineLoadedCost

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

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        If this line has received allocation or has been allocated to other lines, we have to warn the user while doing any action that changes the cost. If it's a CREDIT type of invoice, needs to display positive loaded cost on screen. Set LoadedCostForUI equal to LoadedCost * -1.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException