psdi.app.invoice

Class FldInvoicePreTaxTotal

  • All Implemented Interfaces:
    MboConstants, MboValueListener
    Direct Known Subclasses:
    FldInvoicePreTaxTotalForUI


    public class FldInvoicePreTaxTotal
    extends MboValueAdapter
    Invoice.pretaxtotal(non-persistent attribute) validation class: Pretaxtotal is a non-persistent field which stores the invoice total cost before taxes. When the field is initialized it gets its value by subtracting the total taxes from the total cost. On clearing, it is set to the sum of the linecost for all the invoice lines. Totalcost and bastotalcost is calculated based on the syscode. Also syscode is cleared and set depending on from where the field is set i.e. whether it is set internally or directly by the user.
    • Constructor Detail

      • FldInvoicePreTaxTotal

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

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Recalculate the totalcost and the basetotalcost based on the syscode. Also set and clear the syscode depending on from where this field is set. A message is posted on the bulletin board when the field is set internally and in that case we don't set or clear the syscode. If the field is cleared it is set to the sum of the invoice lines linecost.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        BulletinBoardService