ExchangeRateHelper::newExchangeDate Method [AX 2012]
Creates an instance of the ExchangeRateHelper class.
Syntax
client server public static ExchangeRateHelper newExchangeDate(
LedgerRecId _ledger,
CurrencyCode _fromCurrency,
TransDate _exchangeDate)
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.
- _exchangeDate
Type: TransDate Extended Data Type
The exchange rate date 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 that is provided.