Currency rate tools
Files Maintenance has two wizards that connect the currency rates in the transactions with the rates in the Exchange Rates Table. The first is Rebuild Currencies Exchange Rates Table: it reads the rates that were recorded in the entries, and writes the rates of the days of the table from them. The second is Audit Currency Rates Compared To Table: it does the opposite. It compares the rates of bills, vouchers and entries with the table, and fixes them if you ask. Each has one page after the backup page, and this page explains them.
Opening the window
From the ribbon: File > Tools > Files Maintenance, then select the wizard and click Run. Opening the window is explained in Run files maintenance.
| Wizard | When it shows in the list |
|---|---|
| Rebuild Currencies Exchange Rates Table | When your key includes accounting. |
| Audit Currency Rates Compared To Table | When your key includes accounting and the file does not work in multi-file mode (Available maintenance). |
- Running either from the Files Maintenance window, from its favorites menu or from Quick Launch search checks no permission of its own. The permission with its name in Users Management > Operations controls only whether its desktop tile shows.
- When you select either wizard in the Files Maintenance window, the warning box "This operation is dangerous …" shows, because the danger level of each is above low (Run files maintenance).
- Each starts with the Make a Backup page, which is explained in Make a backup. You may choose Don't Make a Backup (not recommended). With a cloud subscription the page described there replaces it.
- How the maintenance wizards work: the buttons, the question on cancel, and what follows success.
Rebuild Currencies Exchange Rates Table
The page heading is Build Currency Exchange Rate Table. The text on it says: "Select desired options then click "Start" to begin building the table.".
Period
| Field | Description | Required | Values and rules |
|---|---|---|---|
| From | The first day whose entry rates are read. | Yes | It starts with the start date of the file. The field cannot be empty. How the date field works is in Date fields and calendar. |
| To | The last day. | Yes | It starts with today's date, not the end of the file. |
Table Options
| Field | Description | Required | Values and rules |
|---|---|---|---|
| For currency | Reads the rates of one currency, the one chosen in Currency. | No | One of two opposite buttons with All currencies except. |
| All currencies except | Reads the rates of all currencies and excludes the currency in Currency: it writes no rates for it in the table. | No | Selected when the page opens. |
| Currency | The currency the two buttons above refer to. | Yes | A list of the currencies of the file. It starts with your default currency. The program hides the field and its caption if your licence allows only one currency, and hides the Average option of Selected Price with them. |
| Save history in database | Writes the rates in the table. If you untick it, nothing is written and only the warnings are produced. | No | Ticked when the page opens. Unticking it disables Update saved values, Don't modify if more than 1 price found and the Selected Price options. |
| Update saved values | Replaces the rate of a day that is already in the table. Otherwise the existing days stay as they are. | No | Not ticked when the page opens. If you tick it and then untick Save history in database, its effect stays: the program still deletes the duplicate rows of the table. |
| Don't modify if more than 1 price found | Does not save a day on which the same currency has more than one rate. | No | Not ticked when the page opens. Disabled unless Save history in database and Update saved values are both ticked. If you tick it and then untick one of them, its effect stays. |
| Warn if more than 1 value in same day found | Adds a line to the results window for each entry whose rate differs from the rate of the first line of the same currency on the same day. | No | Ticked when the page opens. |
| Warn if price is not equal 1 for excluded currency | Adds a line when the rate of the excluded currency in an entry is not 1. | No | Ticked when the page opens. Disabled with For currency. |
Selected Price
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Maximum | Chooses the highest rate of the day. | No | Selected when the page opens. |
| Minimum | Chooses the lowest rate. | No | |
| Average | Chooses the average of the rates. | No |
The three options are disabled unless Save history in database is ticked. The selected price applies only to the days the program adds. A day already in the table gets the rate of the first line, as in What the program writes. If your licence allows only one currency, the Average option does not show, because the program hides it with the Currency field.
| Button | What it does |
|---|---|
| Start | Reads the entries of the period and builds the table as in What the program writes. It checks no field before it starts. |
| Back | Returns to the backup page. |
| Next | Disabled, because this is the last page. |
| Cancel | Asks "Are you sure you want to exit and cancel the maintenance operation?", then closes the wizard. Disabled during the run. |
| Help | Opens the help topic of the page, if there is one. |
What the program writes
The program reads the entry lines dated in the period. These are all the entries of the file, whatever their source. It orders them by currency, then date, then entry number, and processes each currency and each day on its own.
- With For currency it reads the lines of the chosen currency only. With All currencies except it reads all the lines, and writes no rates for the chosen currency.
- If the table has no row for the currency on the day, the program adds a row for this day. If it has a row, the program replaces its rate with the rate of the first line of the day if you tick Update saved values, and leaves it otherwise.
- With Update saved values, the program first deletes the duplicate rows of the table, those with the same currency and date, and puts back only one of the deleted rows.
- The program calculates the rate it adds in a new row from the second line of the day onward, not from the first. It starts from zero and does not return to zero when it moves to another day or currency. With Maximum it takes the highest rate seen so far on a second or later line, on this day or on any day or currency processed before it. So a day with lower rates can get a higher rate from an earlier day, or from another currency processed before it. With Average it takes the average of the rates of the whole day. With Minimum it finds no rate below
0, so the calculated rate stays0. Every entry has at least two lines, so a day with one euro entry has more than one line, and the program calculates its rate from them. - The program does not write the last day it read.
Example: the option is All currencies except, the excluded currency is the riyal, the selected price is Maximum, and the table has no rows for the euro. The euro entries cover three days, with one entry of two lines at the same rate on each day: 3-1-2026 at 1.12, 5-1-2026 at 1.10 and 8-1-2026 at 1.11. The program adds to the table 3-1 at 1.12, and 5-1 at 1.12, not 1.10, because the highest rate seen so far is 1.12. It does not write 8-1, the last day it read.
If the program option Activate log file is on, the program adds a log record with the note "Rebuild Currencies Exchange Rates Table" in the Log File.
After the run, open the Exchange Rates Table and review the rates before you rely on them.
The results window
A window shows "This window displays error found while checking.", with a line for each warning. It does not show if the program found no warning. It holds these two messages:
| Message | Why it shows |
|---|---|
| More than one Rate at the Same Date | The rate of an entry differs from the rate of the first line of the same currency on the same day, with Warn if more than 1 value in same day found ticked. It is linked to the entry. |
| Basic Currency but its Rate is not 1 | The first line of the excluded currency on a day has a rate other than 1, with Warn if price is not equal 1 for excluded currency ticked. It is linked to the entry. |
Audit Currency Rates Compared To Table
The page heading is Audit Currency Rates Compared To Table. The page explains that you choose the maintenance type: an audit that also tries to fix the errors, or an audit only that shows the errors.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Audit and Fix | Compares, fixes the different rates, and shows a report of them. | No | Selected when the page opens. One of three options, and you choose one. |
| Audit Only | Shows a report of the sources whose rate differs from the table, and fixes nothing. | No | |
| Fix Only | Fixes the different rates without a report. The text calls it the fastest. | No | |
| Report Sources | The types of transactions that are compared. | No | A list with tick boxes. All are ticked when the page opens, and it shows what you have permission to browse. It holds Journal Entry, the payment and receipt vouchers, the bills, the standard bills and the commercial papers, and the program adds the sources of its other modules. The bills and standard bills show only if your key includes stock, the payment and receipt vouchers only if your key allows voucher types, and the commercial papers only if it allows commercial paper types. If Turkish e-invoicing is on, its types do not show. The program does not check that a type is ticked: with none ticked it compares nothing and shows the success messages. |
| From | The first day the audit covers. | Yes | It starts with the start date of the file. |
| To | The last day the audit covers. | Yes | It starts with the end date of the file. |
Under the Report Sources list there is a field without a caption that shows the prompt Groups of forms. Choose a forms group in it to tick its types in the list and untick the others. The program empties the field when you click a check box in the list (Forms groups).
| Button | What it does |
|---|---|
| Start | Starts the audit as in What the audit does. |
| Back | Returns to the backup page. |
| Next | Disabled, because this is the last page. |
| Cancel | Asks "Are you sure you want to exit and cancel the maintenance operation?", then closes the wizard. Disabled during the run. |
| Help | Opens the help topic of the page, if there is one. |
What the audit does
- It checks that no other user is in the file. If it finds one, it shows their names and stops.
- If the program option Activate log file is on, it adds a log record with the note "Begin With" in the Log File (Log File).
- In the ticked sources and the period, it looks for each document whose rate differs from the rate of the table for its currency on the date of the document. The table rate is the rate of the latest row of the table on that date or before it, or the rate of the currency in its card if no row precedes it. It compares the rates for exact equality.
- With Audit and Fix and Audit Only it writes a line for each difference in the results window.
- With Audit and Fix and Fix Only it fixes, as in The fix.
- It shows "Checking files completed successfully No errors.", then the results, then "Operation successfully completed". The message "Checking files completed successfully" shows even if differences were found, and even with Audit Only. If you refuse to continue after the question about links, it does not show, and the failure message shows instead.
The fix
For each document in the sources and the period whose rate differs from the table, the program puts the table rate in the document and multiplies its amounts by the ratio between the two rates, then reposts the entries. It fixes the manual journal entries if Journal Entry is ticked, and bills, vouchers and commercial papers with their entries and lines. If the Saudi e-invoicing system is on, it does not fix sales bills and their returns.
- Linked payments: if the documents that will change include documents linked to payments, the program unlinks them. This needs the permission Delete or Modify an Entry or a Bill Related with Payment. Without it you see "Links that must be unlinked" with "There are linked payments must be unlinked, and you have no authority to do it so the process will not be executed" under it. With it you see "Links that must be unlinked" with "There are linked payments will be unlinked, each linked payment with changed exchange rate will be unlinked, do you want to continue?" under it, and the buttons OK and Cancel.
- An entry that would become unbalanced: the program puts the amounts and the rate of the entry back as they were. This does not show in the results.
- If no linked payments are involved, there is no other confirmation after Start.
The results window
A window shows "This window displays error found while checking.". The first line holds the column titles, then there is a line for each difference.
| Column | What it holds |
|---|---|
| The Error | "Rate Different from Table". |
| Source | The description of the document: an entry, a bill, a voucher or a commercial paper. |
| Currency | The name of the currency. |
| Entry Rate | The rate of the document. |
| Table Rate | The rate of the table. |
| Entry Equivalent | One divided by the rate of the document. |
| Table Equivalent | One divided by the rate of the table. |
Messages
| Message | Why it shows | What to do |
|---|---|---|
| Database is Opened By Users : … Please check that all users logged out then try again. | In the audit: another user works on the file. "An error was encountered while performing the operation." follows. | Ask them to leave, then click Start. |
| Links that must be unlinked, with "There are linked payments must be unlinked, and you have no authority to do it so the process will not be executed" under it | In the audit with a fix: linked payments exist and you lack the permission. "An error was encountered while performing the operation." follows. | Ask for the permission, or run Audit Only. |
| Links that must be unlinked, with "There are linked payments will be unlinked, each linked payment with changed exchange rate will be unlinked, do you want to continue?" under it | In the audit with a fix: linked payments exist and you have the permission. If you click Cancel, "An error was encountered while performing the operation." shows, and what the audit recorded stays in the results window. | Click OK to continue. |
| Checking files completed successfully No errors. | In the audit: when the check ends. | Then read the results window. |
| An error was encountered while performing the operation. | A command was refused, a check failed, or you cancelled. | Read the message before it. |
| Operation successfully completed | The wizard ended. | |
| Are you sure you want to exit and cancel the maintenance operation? | You clicked Cancel before Start. | Click Yes to leave, or No to continue. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.