ExpressionCurrencyDefaultProvider.ConvertAmountValue Method [AX 2012]
Gets the amount from the LHS field and converts it to an amount in the specified currency.
Syntax
public Amount ConvertAmountValue(
Amount fromAmount,
CLRObject fromField,
CurrencyCode toCurrencyCode,
RecId recID)
Run On
Called
Parameters
- fromAmount
Type: Amount Extended Data Type
The amount to be converted.
- fromField
Type: CLRObject Class
The field that has the amount to be converted.
- toCurrencyCode
Type: CurrencyCode Extended Data Type
The currency code to which the amount is converted.
- recID
Type: RecId Extended Data Type
The record ID of the table buffer that corresponds to the fromField field.
Return Value
Type: Amount Extended Data Type
The converted amount.
Remarks
This method is used during the evaluation of field-to-value conditions.