ExchangeRateCurrencyPairCalculationRules::findCalculationRuleSwap Method
Finds the matching record in ExchangeRateCurrencyPairCalculationRules table for two currencies, no matter in which order these currencies are specified.
Syntax
client server private static ExchangeRateCurrencyPairCalculationRules findCalculationRuleSwap(
ExchangeRateTypeRecId _exchangeRateTypeRecId,
SelectableDataArea _dataAreaRecId,
CurrencyCode _currency1,
CurrencyCode _currency2,
[boolean _forUpdate])
Run On
Called
Parameters
- _exchangeRateTypeRecId
Type: ExchangeRateTypeRecId Extended Data Type
Exchange rate type reference.
- _dataAreaRecId
Type: SelectableDataArea Extended Data Type
Company reference.
- _currency1
Type: CurrencyCode Extended Data Type
Currency, for which the conversion is being performed.
- _currency2
Type: CurrencyCode Extended Data Type
Currency, for which the conversion is being performed.
- _forUpdate
Type: boolean
true if record is to be selected for update.
Return Value
Type: ExchangeRateCurrencyPairCalculationRules Table
The matching record in ExchangeRateCurrencyPairCalculationRules table having in mind that values in CurrencyTo and CurrencyFrom fields may be swapped.