psdi.app.invoice

Class FldInvoiceTotalCostForUI

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceTotalCostForUI
    extends FldInvoiceTotalCost
    Invoice.TotalCostForUI is a non-persistent field that corresponding with TotalCost. Total cost field always displays positive number on the screen. If it's a CREDIT type of invoice, TotalCost is stored as negative number in database. 1) When initialized the field, TotalCostForUI needs to display positive number on screen (TotalCost * -1). 2) When saving the invoice, TotalCost needs to store as nagative number in database (TotalCostForUI *-1)