CurrencyExchangeHelper.calculateCurrencyToCurrency Method [AX 2012]
Calculates the amount between the original currency and the resulting currency.
Syntax
public AmountMST calculateCurrencyToCurrency(
CurrencyCode _fromCurrency,
CurrencyCode _toCurrency,
AmountCur _fromAmount,
boolean _roundResult)
Run On
Called
Parameters
- _fromCurrency
Type: CurrencyCode Extended Data Type
The original currency from which to convert.
- _toCurrency
Type: CurrencyCode Extended Data Type
The resulting currency to which to convert.
- _fromAmount
Type: AmountCur Extended Data Type
The original currency amount that is used to calculate the resulting currency amount.
- _roundResult
Type: boolean
A Boolean value that specifies whether the result should be rounded.
Return Value
Type: AmountMST Extended Data Type
A resulting currency amount that has been calculated from the original currency amount.