psdi.app.invoice

Class FldInvoiceBaseTotalCostForUI

  • All Implemented Interfaces:
    MboConstants, MboValueListener


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

      • FldInvoiceBaseTotalCostForUI

        public FldInvoiceBaseTotalCostForUI(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 base total cost on screen. Set BaseTotalCostForUI equal to BaseTotalCost * -1.
        Specified by:
        initValue in interface MboValueListener
        Overrides:
        initValue in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Set the base total cost being set from this UI field. The base total cost is always stored as negative number in the database but displayed as a positive number if the invoice is of type CREDIT.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException