Administration Tools
The Administration Tools window holds maintenance commands that you run once on the database of the Saudi e-invoice: reducing its size, regenerating the archive, and moving the tax data of customers. They work on the whole file, not on one invoice, and some of them delete records, so read the description of each tool before you run it.
Opening the window
From the ribbon: Systems > KSA Taxes > E-invoice > Administration Tools. The command shows only to the administrator user, needs the permission Administration Tools on the Operations page of Users Management, and needs your licence to include the Gulf tax system, with Saudi Arabia as the tax country and the Saudi e-invoicing system enabled.
Before the window opens the program checks the e-invoice settings as in the checks before the window opens, and in phase two it also requires this computer to be set for real sending, or the message "Current terminal settings error: Unable to export electronic invoices from the current terminal, please check e-invoice settings" appears.
The window
At the top a text explains the purpose: "This window enables you to execute commands to speed up and reduce database size, in addition to other commands to delete the archives in order to regenerate them again." Under it is the list of tools, and under the list the description of the selected tool. No tool is selected at first, so click a tool to read its description.
| Button | What it does |
|---|---|
| Run | Runs the selected tool, after a confirmation question with Yes and No. If no tool is selected, it does nothing. The window stays open after the run. |
| Close | Closes the window. |
The tools
After a tool succeeds, the program writes an event with its name in the operations log. For moving numbers, deleting periods and fixing records it writes it only if at least one record changed. The result shows in the box Operation successfully completed. A tool cannot be undone from the window, so take a backup first.
| Tool | What it does | Confirmation question | Result |
|---|---|---|---|
| Delete stored files | Clears the content of the files stored inside the database, which are archive files kept to attach them to messages with the sending type Attach file. The archive records and the files on the disk stay as they are. When you send a message afterwards, the files are read from the disk and stored again. Its purpose is to reduce the size of the database. | "Delete stored files: Are you sure you want to delete stored files" | "Operation successfully completed". |
| Delete Archives | Deletes all archive records from the database, automatic and manual, and does not delete the files from the disk. Its purpose is to regenerate the archive. When generating, the program does not replace a file with the same name that has no record, so move or delete the old files before you generate again. | "Delete Archives: Are you sure you want to delete the Archives completely" | "Operation successfully completed". |
| Delete manual archives | Deletes only the archive records that a user generated by hand, and keeps the automatic ones. Its purpose is to reduce the size of the database. | "Delete manual archives: Are you sure you want to delete the archives that generated manually" | "Operation successfully completed". |
| Move Tax Numbers | Moves the tax number from the customer card to the tax record in the Gulf tax table. It moves it for each customer whose type is not set or is Commercial, whose card has a tax number and whose tax record has an empty number, then clears the number from the card. | "Move customers tax numbers: The tax number in Customer card will be moved to the place assigned to in the tax table of GCC tax system, do you want to continue" | It shows these counts: "Realized customers count" (the customers whose card has a tax number), "Serial numbers moved", "Realized customers with no tax info", "Realized customers and cannot be moved due to customer type" and "Realized customers but have tax number". If no customer has a number: "No customers found". |
| Delete carried forward tax periods | Deletes the tax periods carried from a previous file that ended before the opening date of this file. | "Delete carried forward tax periods: Are you sure to delete the tax periods transferred from the previous files and not used in the current files?" | "Deleted tax periods count" and the number, or "No tax periods found". |
| Fix Invoices | Appears when phase two is enabled. It treats the sending records that have no invoice and no note, such as those left after an invoice was deleted: it deletes those that have no XML file or response code, and marks the rest as repaired. | "Fix Invoices: Are you sure you want to fix the invoices?" | "Resolved logs count" and the number, or "No record found". |
| Modify customer tax types | Changes the tax type of customers that were not yet used in e-invoices. It opens the window Modify Customer Tax Type. | No question. | In the window it opens. |
This tool is not the command Fix Invoices of the Tax Invoices List: it works on sending records, not on invoices.
For Fix Invoices the number shown counts the deleted and the marked records together. Move Tax Numbers counts every customer whose card has a tax number whatever its type, but it moves from the types not set and Commercial only, and does not move from Personal - Commercial non-resident nor from Legal Person – government or outside- kingdom entity.
Modify Customer Tax Type window
It opens from the tool Modify customer tax types. It changes the tax type of a group of customers at once. The type decides the kind of invoice the program prepares for the customer: for the types Commercial and Legal Person – government or outside- kingdom entity a tax invoice, and for the other types a simplified tax invoice. See Customer tax pages.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Customer | One customer. | No | Account is disabled while a customer is chosen. |
| Account | A customer account: it covers the customers of this account and of the accounts under it. | No | Customer is disabled while an account is chosen. |
| Customers Terms | Saved conditions that define the customers, with a grid under it that explains the chosen condition. | No | The list of the saved customer conditions. |
| Tax Type | The new type. | Yes | Personal - Commercial non-resident (selected at first), Commercial, or Legal Person – government or outside- kingdom entity. |
If you leave Customer, Account and Customers Terms empty the tool covers all customers.
| Button | What it does |
|---|---|
| Ok | First opens the backup window. If you close it without completing a backup and the option Force backups in management tools in tax system is on, the operation stops; if it is off the operation continues without a backup. Then it changes the type and shows the result. |
| Cancel | Closes the window without a change. |
The tool changes the customers whose current type differs from the new one and who have no invoice that got a tax type, that is, no invoice that was prepared. The others are not touched, with no notice. If operations logging is on, the program writes an event to the log for each customer whose type changed, then shows "Operation successfully completed: Modified logs count" and the number. If no customer changed, the warning "No customers found" appears.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Current terminal settings error | In phase two: this computer is not set for real sending. | Correct the settings of the computer. |
| No customers found | In Modify Customer Tax Type: no customer changed, because they already have the target type or have e-invoices. In Move Tax Numbers: no customer has a tax number in the card. | Nothing. |
| No record found | In Fix Invoices: no record needs repair. | Nothing. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.