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.
| Type | What it is | Who uses it |
|---|---|---|
| Spot | The day's rate | Every invoice, bill, receipt and payment in another currency. Anything that does not ask for a type gets spot. |
| Closing | The rate at a balance-sheet date | The period-end revaluation. Where the period has no closing rate it uses spot and says so. |
| Average | A month's mean of its daily (spot) rates | Translated income statements. Worked out, never typed. |
| Historical | The rate on the day something happened | Kept 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.
| Provider | What it is | Credentials |
|---|---|---|
European Central Bank (ecb) | Free daily reference rates for about thirty currencies, published each working day around 16:00 Frankfurt time | None |
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
| Permission | What it allows | Seeded roles |
|---|---|---|
exchange_rate.read | See the rates | Manager, Accounting |
exchange_rate.manage | Add, correct, import rates; work out a month's average and closing rates | Accounting |
exchange_rate.fetch | Fetch today's rates from the feed now | Accounting |
The morning job runs as the system and needs none.
Settings
| Setting | Default | What it does |
|---|---|---|
exchange_rates.feed_currencies | empty | Currencies 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_days | 7 | How 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
| Signal | Raised when | What to do |
|---|---|---|
reference.exchange_rate_feed_failing | The chosen feed's last call failed | Check it on Settings → Integrations; enter today's rates by hand meanwhile |
reference.exchange_rates_stale | A currency's latest spot rate is older than exchange_rates.stale_days | Enter 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) withexchange_rate.read. It cannot add or change one.