psdi.app.invoice

Class FldInvoiceCurrencyCode

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceCurrencyCode
    extends FldCommonCurrencyCode
    Invoice currencycode validation class validates if the currency code entered is valid and if valid sets the new exchangerate and exchangedate and sets the unitcost and Extends the common class FldCommonCurrencyCode which further extends FldCurrencyCode. The currency code should exist in currency table. The base class FldCurrencyCode does the basic validation i.e. checking if it is a valid currency. If the currency code changes set exchangerate and exchangedate equal to null. Also the base class FldCommonCurrencyCode calculates the exchangerate and the basetotalcost if the currency code changes.
    See Also:
    FldCommonCurrencyCode
    • Constructor Detail

      • FldInvoiceCurrencyCode

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

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        If the currency code has changed set exchangerate and exchangedate null. The base class FldCommonCurrencyCode calculates the exchangerate and the basetotalcost if the currency changes.

        1. Set the exchangerate and exchangedate to null if the present currency code is not equal to the previous currency code
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class FldCommonCurrencyCode
        Throws:
        MXException
        java.rmi.RemoteException