psdi.app.common

Class FldCommonTaxCode

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldCommonTaxCode
    extends FldTaxCode
    Common Validation Class for: Tax1Code,Tax2Code,Tax3Code,Tax4Code,Tax5Code This common class does the followings: 1. Validate value against the TAX table - combination of taxcode and typecode. 2. Calculates the tax value for the current taxcode and recalculates the other tax values impacted by the change of the current value.
    • Constructor Detail

      • FldCommonTaxCode

        public FldCommonTaxCode(MboValue mbv)
                         throws MXException,
                                java.rmi.RemoteException
        Construct and attach to the mbo value Validate that taxcode has to be in the tax table tax1code implicitly suggests that it is a taxcode of typecode '1' tax2code implimitly suggests that it is a taxcode of typecode '2' etc. thru tax5code
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        IV35816/71201: invoiceline performance - if one invoice has many invoicelines - each line may refercne just one Tax record cache the Tax object in InvoiceLineSet.taxHash to avoid repeated sql fetches for the same select statement
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException