Share via


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

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

See Also

Reference

ExchangeRateCurrencyPairCalculationRules Table