Skip to main content

Exchange rates (administration)

The rates a company values foreign-currency documents and balances at, their types, and the feed that can fill them in each morning. Always available: part of the base product, with nothing to do for a company that trades only in its own currency.

Rate types​

Every rate has a type. Existing rates were all day rates and are spot.

TypeWhat it isWho uses it
SpotThe day's rateEvery invoice, bill, receipt and payment in another currency. Anything that does not ask for a type gets spot.
ClosingThe rate at a balance-sheet dateThe period-end revaluation. Where the period has no closing rate it uses spot and says so.
AverageA month's mean of its daily (spot) ratesTranslated income statements. Worked out, never typed.
HistoricalThe rate on the day something happenedKept for balances carried at their original rate.

Two rows may share a pair and date if their types differ; two of the same type may not.

The rate feed​

The feed is the Exchange-rate feed capability on Settings → Integrations. Nothing is chosen by default, so a company that keys its own rates (from its bank, at the rate it dealt at) never finds a second set appearing beside them.

ProviderWhat it isCredentials
European Central Bank (ecb)Free daily reference rates for about thirty currencies, published each working day around 16:00 Frankfurt timeNone

Once a feed is chosen:

  • Each morning (job reference.exchange_rate_feed, 04:00 company time) it writes a spot rate, to the company's own currency, for every currency in use, effective the date the provider published it, with Source set to the provider (ecb). A currency is in use when it is listed in the setting below, has a rate on file against the company's currency, is the revaluation currency of an account, or appears on a journal line in the last three months.
  • A rate already on file for the pair and date is left alone: a rate somebody keyed first wins, and running twice writes nothing.
  • The same job works out last month's average and closing rates from the daily rates on file, for every pair with any, whether or not a feed is chosen. A month already worked out is left alone.
  • Fetch today's rates on the Exchange rates screen does the first half now.

When the feed is down or not chosen, nothing waits for it. Rates keyed on the screen or imported work as before, an invoice without a rate is refused exactly as before (naming the rate), the morning job logs and tries again tomorrow, and the signals below tell somebody.

Permissions​

PermissionWhat it allowsSeeded roles
exchange_rate.readSee the ratesManager, Accounting
exchange_rate.manageAdd, correct, import rates; work out a month's average and closing ratesAccounting
exchange_rate.fetchFetch today's rates from the feed nowAccounting

The morning job runs as the system and needs none.

Settings​

SettingDefaultWhat it does
exchange_rates.feed_currenciesemptyCurrencies the feed fetches beside the ones it finds in use, as codes separated by commas (EUR, GBP). Add one before the first invoice in it.
exchange_rates.stale_days7How many days a currency's latest daily rate may age before the stale rate signal is raised. 1 to 366. A company that keys rates monthly should raise it to 35 or so.

Signals​

SignalRaised whenWhat to do
reference.exchange_rate_feed_failingThe chosen feed's last call failedCheck it on Settings → Integrations; enter today's rates by hand meanwhile
reference.exchange_rates_staleA currency's latest spot rate is older than exchange_rates.stale_daysEnter the rate, or choose a feed

Both are seen by whoever holds exchange_rate.read.

How it interacts with other modules​

  • Currency revaluation restates at the period's closing rate, falling back to spot; see Currency revaluation.
  • The assistant can read rates by type (reference.exchange_rates_by_type) with exchange_rate.read. It cannot add or change one.