Share via


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

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

See Also

Reference

ExchangeRateCurrencyPairCalculationRules Table