psdi.app.invoice

Class FldInvoiceTotalTax

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


    public class FldInvoiceTotalTax
    extends MboValueAdapter
    Invoice.totaltax1-5 validation class: This class recalculates and sets the pretaxtotal, totalcost and the basetotalcost depending upon the syscode. If the field is cleared and not set internally, set it equal to the sum of the related taxes for the invoice lines. 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

      • FldInvoiceTotalTax

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

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Recalculate the pretaxtotal, totalcost and the basetotalcost based on the syscode. Calculate and set the pretaxtotal if the pretaxtotal syscode is not set and the totalcost syscode is set. In all the other cases calculate and set the totalcost and the basetotalcost. 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 and not set internally, set it equal to the sum of the related taxes for the invoice lines.



        Conditions:
        1. Update the totalcost and basetotalcost only if the syscode on totaltax is not already set.
        2. Update the pretaxtotal only if the syscode on pretaxtotal is not already set
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        BulletinBoardService