psdi.app.mr

Class FldMRCurrencyCode

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldMRCurrencyCode
    extends MboValueAdapter
    MR.currencycode(non-persistent attribute) validation class: CurrencyCode is a non-persistent field which stores the currency code. The currencycode is set based on some conditions. It is set to
    1. Base currency if the mrlines are in different vendor currencies.
    2. MRLine's currencycode if all the lines are in the same currency.
    3. Base currency if there are no MR lines.
    The currencycode is reset according to the above rules whenever an mrline is added or deleted.
    • Method Detail

      • initValue

        public void initValue()
                       throws MXException,
                              java.rmi.RemoteException
        Initialize this non-persistent field and set it equal to the appropriate currency code. The currencycode is set based on some conditions.It is set to
        1. Base currency if the mrlines are in different vendor currencies.
        2. MRLine's currencycode if all the lines are in the same currency.
        3. Base currency if there are no MR lines.
        Specified by:
        initValue in interface MboValueListener
        Overrides:
        initValue in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException