Daily exchange rates.
The official NBU rates of the day are checked and written into both companies every working day. A change above 3 % waits for the accountant, an old rate is never changed, and documents that met the wrong rate are listed.
- Company
- Demo Manufacturer LLC and Demo Manufacturer US Inc.
- Starts when
- Every working day at 09:00
- How often
- Every working day, one run for both companies
The diagram goes on to the side. Drag it, or use the two buttons.
Steps
Steps in order
| # | Step | Done by | Tolerance | Rollout stage |
|---|---|---|---|---|
| 1 | Code reads the NBU rates Selected | Rate reader · Automation, no AI | Dated today and 2 more | 6 |
| 2 | Code checks the change from the last rate Selected | Rate checks · Automation, no AI | Change at most 3 % and 1 more | 6 |
| 3 | Accountant confirms the rate Selected | Accountant | Within 3 % | 6 |
| 4 | Code writes the rate for both companies Selected | Rate writer · Automation, no AI | Equal to 0.01 in the company currency and 1 more | 6 |
| 5 | Code lists documents with a wrong rate Selected | Rate checks · Automation, no AI | Exact and 2 more | 6 |
Rollout stage: 6 · Month-end close and approvals.
Before
How it was done before
The accountant typed the rate into a Google Sheet when a payment needed it, and QuickBooks Online used a rate of its own.
Where it breaks without control
- The rate of yesterday is written under today's date, because the answer came late.
- UAH per euro is entered as euro per UAH, or the rates of two currencies are swapped.
- One invoice in euro has two values, because each company took its rate from another source.
Controls
What is checked, and who signs
Checks
| Step | Compared with | Tolerance | On a difference |
|---|---|---|---|
| 1 · Code reads the NBU rates | The date in the answer against today; the currencies in the answer against those in use | Dated today; every currency in use present; rate above zero for the stated number of units | Nothing is written. Code asks again, and with no full answer by 10:00 tells the accountant which currency is missing. A document in a currency with no rate of today waits; yesterday's rate is never written under today's date. |
| 2 · Code checks the change from the last rate | Each rate against the last one, as UAH for one unit of the currency | Change at most 3 %; USD and EUR not swapped - the rate of one is not the last rate of the other | No rate of the day is written, also for the other currencies, until the accountant confirms. Odoo itself only shows a warning to a person who types a rate more than 20 % away. |
| 3 · Accountant confirms the rate | The official rate against the bank's rate of the same currency and day | Within 3 % | The accountant refuses, and code reads the NBU again. The accountant cannot type a rate. Invoices and bills of the day wait until a rate is confirmed. |
| 4 · Code writes the rate for both companies | 1,000 units of each currency converted by Odoo against 1,000 times the NBU rate, in the US company against 1,000 times the cross rate | Equal to 0.01 in the company currency; no rate of an earlier date changed | The set is taken back in both companies, and the accountant is told. Odoo keeps one rate per day and would let a person edit an old one; our module refuses a change to any rate dated before today. |
| 5 · Code lists documents with a wrong rate | The rate on the document against the rate of its date; every working day against the days that have a rate | Exact; a credit note keeps the rate of its invoice; a weekend or a holiday takes the last working day before it | Odoo takes the last earlier rate without a word when a day has none, so such a document looks correct. It waits in the accountant's exception queue. The accountant resets and posts again a document that has not left the company, and corrects one that has by an exchange difference entry that names it. |
Duties by role
What the action log records
| Step | Record | What is written |
|---|---|---|
| 1 · Code reads the NBU rates | Agent action log | The answer of the NBU as received, with its time |
| 2 · Code checks the change from the last rate | Agent action log | Change of each currency in percent, and clean or waiting |
| 4 · Code writes the rate for both companies | Agent action log | Each rate written, and the value read back |
Connected processes
Where the work comes from and where it goes
Work goes to
| Process | What passes | At step |
|---|---|---|
| Month-end close | Rates of every day, and documents still to correct | Code lists documents with a wrong rate |
| Price list change | The rate of the day, to compare with prices | Code writes the rate for both companies |
Work comes from
No other process hands work to this one. It starts from its own trigger.
Want this process checked on your data?
Tell us where it goes wrong.