GetCurrencyRateComposite

From ACCPAC Common Controls

AccpacSession.GetCurrencyRateComposite

Creates and returns an AccpacCurrencyRate object that represents the composite rate between the specified home and source currency codes of the specified rate type on a certain date.

Function GetCurrencyRateComposite(
  HomeCurrencyCode As String,
  RateType As String,
  SourceCurrencyCode As String,
  Date As Date) As AccpacCurrencyRate

Parameters

HomeCurrencyCode

[in] the home currency code

RateType

[in] the currency rate type code

SourceCurrencyCode

[in] the source currency code

Date

[in] the date for which the exchange rate is retrieved

Return Value

Returns an AccpacCurrencyRate object that contains details of the composite exchange rate.

Remarks

If both currencies are non-block currencies, this method returns the same rate as GetCurrencyRate.

The home currency is also referred to as the functional currency.