ExpressionCurrencyDefaultProvider.ConvertAmountField Method [AX 2012]
Gets the amount from the LHS field and converts it to an amount in the currency code that is associated with the RHS field.
Syntax
public Amount ConvertAmountField(
Amount fromAmount,
CLRObject fromField,
CLRObject toField,
RecId lhsRecID,
RecId rhsRecID)
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.
- toField
Type: CLRObject Class
The field to which the amount is converted.
- lhsRecID
Type: RecId Extended Data Type
The record ID of the table buffer that corresponds to the fromField field.
- rhsRecID
Type: RecId Extended Data Type
The record ID of the table buffer that corresponds to the toField field.
Return Value
Type: Amount Extended Data Type
The converted amount.
Remarks
This method is used during the evaluation of field-to-field conditions.