Share via


ExchangeRateHelper::prepareExchangeRateForStorage_Static Method [AX 2012]

Retrieves an exchange rate that can be stored in the database.

Syntax

client server public static CurrencyExchangeRate prepareExchangeRateForStorage_Static(CurrencyExchangeRate _displayedExchangeRate, ExchangeRateDisplayFactor _exchangeRateDisplayFactor)

Run On

Called

Parameters

Return Value

Type: CurrencyExchangeRate Extended Data Type
An exchange rate that can be stored in the database.

Remarks

After users enter 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 entered by a user.

See Also

Reference

ExchangeRateHelper Class