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

  • 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.

Return Value

Type: Amount Extended Data Type
The converted amount.

Remarks

This method is used during the evaluation of field-to-field conditions.

See Also

Reference

ExpressionCurrencyDefaultProvider Class