ExchangeRateHelper::newCurrencyToCurrency Method [AX 2012]
Creates an instance of the ExchangeRateHelper class.
Syntax
client server public static ExchangeRateHelper newCurrencyToCurrency(CurrencyCode _fromCurrency, CurrencyCode _toCurrency)
Run On
Called
Parameters
- _fromCurrency
Type: CurrencyCode Extended Data Type
The source currency that is used for retrieving exchange rate information.
- _toCurrency
Type: CurrencyCode Extended Data Type
The target 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. Use this constructor when the system is retrieving exchange rate information outside the context of a specific ledger.