ExchangeRate::getVariableExchangeRate Method
Gets the variable exchange rate for the specified exchange rate currency pair.
Syntax
client server public static CurrencyExchangeRate getVariableExchangeRate(
CurrencyCode _fromCurrencyCode,
CurrencyCode _toCurrencyCode,
ExchangeRateTypeRecId _exchangeRateType,
date _transactionDate,
boolean _getReciprocalIfPrimaryNotFound)
Run On
Called
Parameters
- _fromCurrencyCode
Type: CurrencyCode Extended Data Type
The from currency code.
- _toCurrencyCode
Type: CurrencyCode Extended Data Type
The to currency code.
- _exchangeRateType
Type: ExchangeRateTypeRecId Extended Data Type
The ID of the exchange rate type.
- _transactionDate
Type: date
The transaction date.
- _getReciprocalIfPrimaryNotFound
Type: boolean
Determines whether to retrieve the reciprocal exchange rate when the primary exchange rate is not found.
Return Value
Type: CurrencyExchangeRate Extended Data Type
The variable exchange rate for the specified exchange rate currency pair.
Remarks
It is best to use the ExchangeRateHelper class to retrieve exchange rate information since this method only deals with variable exchange rates and does not take Euro triangulation into account.