CurrencyExchangeHelper.calculateAccountingToTransaction Method [AX 2012]
Calculates the transaction currency amount from the specified accounting currency amount.
Syntax
public AmountCur calculateAccountingToTransaction(
CurrencyCode _transactionCurrency,
AmountMST _accountingCurrencyAmount,
boolean _roundResult)
Run On
Called
Parameters
- _transactionCurrency
Type: CurrencyCode Extended Data Type
- _accountingCurrencyAmount
Type: AmountMST Extended Data Type
The accounting currency amount to use to calculate the transaction currency amount.
- _roundResult
Type: boolean
A Boolean value that indicates whether the result should be rounded.
Return Value
Type: AmountCur Extended Data Type
A transaction currency amount that has been calculated from the accounting currency amount with the appropriate rounding applied.
Remarks
This method uses the parmLedger, parmFromCurrency, parmExchangeDate, parmExchangeRate1, parmExchangeRate2, and parmIsTriangulated properties.
The parmExchangeRate1 and parmExchangeRate2 properties can be set to typical values because this calculation will invert the rates appropriately to perform the calculation.