ExchangeRateHelper::getExchangeRate1_Static Method [AX 2012]
Retrieves an exchange rate that is based on the specified parameters.
Syntax
client server public static ExchRate getExchangeRate1_Static(
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: ExchRate Extended Data Type
An exchange rate that is based on the specified information; otherwise, an error.
Remarks
Both the getExchangeRate1_Static and getExchangeRate2_Static methods have to be considered when the system is retrieving the exchange rate information. When the Euro triangulation is being used, the exchange rates will contain various combinations of fixed and variable exchange rates.