ExchangeRateCurrencyPairCalculationRules::findCalculationRule Method
Finds the best matching record in ExchangeRateCurrencyPairCalculationRules table.
Syntax
client server public static ExchangeRateCurrencyPairCalculationRules findCalculationRule(
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 best matching record in ExchangeRateCurrencyPairCalculationRules table.
Remarks
'All exchange rates' setups are assumed to be the most exotic ones, so such scenarios are moved below 'all companies' in this method and in UI.