ExchangeRateHelper.prepareExchangeRateForStorage Method [AX 2012]
Retrieves an exchange rate that can be stored in the database.
Syntax
public CurrencyExchangeRate prepareExchangeRateForStorage(CurrencyExchangeRate _displayedExchangeRate)
Run On
Called
Parameters
- _displayedExchangeRate
Type: CurrencyExchangeRate Extended Data Type
An exchange rate that has been entered by the user on a form.
Return Value
Type: CurrencyExchangeRate Extended Data Type
An exchange rate that can be stored in the database.
Remarks
After users enter the exchange rates, they are multiplied by 100 and divided by the exchange rate display factor that is specified on the ExchangeRateCurrencyPair table, before they are finally stored in the database. This method applies that logic and has to be called before storing any exchange rate that is entered by a user.