psdi.app.invoice

Class FldInvoiceLineLineCostForUI

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceLineLineCostForUI
    extends FldInvoiceLineLineCost
    InvoiceLine.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)