ExchangeRateHelper::newCurrency Method [AX 2012]
Creates an instance of the ExchangeRateHelper class.
Syntax
client server public static ExchangeRateHelper newCurrency(LedgerRecId _ledger, CurrencyCode _fromCurrency)
Run On
Called
Parameters
- _ledger
Type: LedgerRecId Extended Data Type
The ledger context that is used for retrieving exchange rate information.
- _fromCurrency
Type: CurrencyCode Extended Data Type
The currency that is used for retrieving exchange rate information.
Return Value
Type: ExchangeRateHelper Class
An instance of the ExchangeRateHelper class.
Remarks
The resulting instance has valid default values and is ready for use. The parmToCurrency and parmExchangeRateType properties will be defaulted from the ledger provided.