psdi.app.invoice

Class FldInvoiceCostLineCostForUI

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceCostLineCostForUI
    extends FldInvoiceCostLineCost
    InvoiceCost.LineCostForUI is a non-persistent field that corresponding with LineCost. Line cost field always displays positive number on the screen. If it's a CREDIT type of invoice, LineCost is stored as negative number in database. 1) When initialized the field, LineCostForUI needs to display positive number on screen (LineCost * -1). 2) When saving the invoice line, LineCost needs to store as nagative number in database (LineCostForUI *-1)
    • Constructor Detail

      • FldInvoiceCostLineCostForUI

        public FldInvoiceCostLineCostForUI(MboValue mbv)
        Construct and attach to the mbo value.