Activating KSA e-invoicing
These three dialogs activate the parts of the Saudi e-invoicing system in alameen ERP 10 one after another: the e-invoicing system, then its phase two, then the tourist tax refund integration. Every activation is final: no command in the program cancels it. The only way back is the backup the program offers before it runs. For the steps see Activate e-invoicing in Saudi Arabia, Enable phase two of e-invoicing and Enable the tourist tax refund integration.
Opening the dialogs
Each dialog has a ribbon command. The user needs the permission that has the name of the command, on the Operations page of Users Management.
| Dialog | Command | The command appears when |
|---|---|---|
| Activate E-invoicing System | Systems > KSA Taxes > Tools > Activate E-invoicing System... | The GCC tax system is activated with Saudi Arabia, and e-invoicing is not activated yet. See Activate a tax system. |
| Enable Phase Two of E-invoicing System | Systems > KSA Taxes > E-invoice > Enable phase 2 of KSA e-invoicing system... | Your licence includes the Saudi e-invoicing (phase two) feature, e-invoicing is ready for use (not postponed), and phase two is not activated. |
| Activate Tax Refund Integration | Systems > KSA Taxes > E-invoice > Activate Tourists Invoices Integration System... | Phase two is activated, your licence includes the tax-free services for tourists in Saudi Arabia, and the tourist system is not activated. |
In all three cases the program does this when you click the command:
- If other windows are open it asks: "All opened windows must be closed before performing this operation. Are you sure you want to do this?". Click Yes to close them. If you click No the dialog does not open.
- It puts the file in exclusive mode, so no other user can log on to the file while the dialog is open. If another user holds exclusive mode you see "The files are in exclusive mode, you can't log on to the files now." and the dialog does not open.
- The file leaves exclusive mode when the dialog closes.
After e-invoicing or its phase two is activated, E-Invoice Settings opens at once. That does not happen after the tourist system.
Activate E-invoicing System
Activates the Saudi e-invoicing system in the file and prepares the countries, currencies, terms and customers.
System Activation Date
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Delay invoices processing to date: | Postpones the start of e-invoicing to a set date. | No | Not ticked at first. Ticking it enables the date box. |
| Date | The day processing starts. | Yes, when postponing | It must be after today. For example, if today is 01-12-2026 enter 02-12-2026 or later. |
The text explains that the system is then activated for preparation only and the tax invoices do not become electronic until the date. Another text says clicking OK hides the window and new windows appear to complete the settings.
Governorates and Cities
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Create Governorates and cities cards in Kingdom of Saudi Arabia | Creates the governorate, city and region cards while activating. | No | Ticked at first. Clear it if you create them by hand or already did. |
Terms
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Activate Saudi Arabian terminology | Changes some names in the program to the names adopted in Saudi Arabia. | No | Ticked at first. It sets the terms file to the Saudi terms and deletes any replacement names you set for five labels of the customer address: city, region, building number, floor number and landmark. |
Customers Types
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Predict customer type using tax number | Sets the type of customers that have none: commercial if they have a tax number, personal if not. | No | Not ticked at first. A customer with no tax number and tax code XP becomes Legal Person – government or outside- kingdom entity; other customers with no number become Personal - Commercial non-resident. |
| Convert invoices that dated before December 4, 2021 to "Outside the System" status | Chooses which old invoices turn to Outside the System. | No | Ticked at first. If you clear it, all sales and sales return invoices that have no status are converted. If it stays ticked only those dated before this date are, and the others stay Not prepared. |
Buttons
| Button | What it does |
|---|---|
| OK | Runs the checks and the activation steps below in order. |
| Close | Closes without activating. If you changed something the program asks before closing. |
What happens at OK
The program stops at the first refusal or error. It writes nothing to the file before step 7.
- If you postponed and the date is today or earlier: "Invalid date": "The date must be greater than today's date".
- If the program option Discount percentage is division percentage is on, a Yes/No question: "It's preferable to not use "Discount Percentage is Division Percentage" option when working on KSA e-invoice", then "Do you want to continue?".
- A question with OK and Cancel: "Do you want to activate Tax System according to E-invoice". Its text: "Activating Taxation System will result in critical changes over processing the settings, bills and entries and you will not be able to undo it."
- A second question with the same buttons: "Are you sure you want to activate Saudi E-invoicing system". Its text: "Please be informed that activating Saudi Arabian E-invoice system will force the following restrictions and procedures in program:" with eight points:
- "Countries and currencies codes must be set according to regulation specified in e- invoice settings."
- "Please set company name and address (country code, governorate, city, district, street, building number, additional number, unit number and zip code.)"
- "In Tax Settings - Tax Types. The number must be 15 characters in length, and begin and end with number 3."
- "Building Number in company address must be 4 digit number."
- "Post Code in company address must be 5 digit number."
- "Additional Number in company address must be 4 digit number."
- "The tax invoices and their associated notes are sales invoices and sales return invoices only."
- "Activating E-invoice system will enforce using password and log file"
- The check of the company data saved in Tax Settings. The title of the error is "E-invoice activation error" in all cases. See the messages table below.
- A last question: "Click OK to make a backup copy": "To get a chance to undo this operation, a backup copy of the file will be created. Would you like to make a backup now?". If you click Cancel the activation stops. If you click OK the backup window opens, and the program goes on with the activation whether you complete the backup or close its window.
- The program writes to the file, and part of it cannot be undone:
- If you did not postpone: it turns the sales and sales return invoices that have no status to Outside the System, all of them or only those dated before 04-12-2021, as you chose. If you postponed, the choice is kept and applied on the postponement date.
- It creates the governorate and city cards if you ticked that.
- It activates the Saudi terms if you ticked that.
- It sets the type of customers that have none if you ticked that.
- It refills the lists of accepted countries and currencies.
- It activates e-invoicing in the file and saves the postponement date, if any.
- It turns on the options that force a password and keep the event log, if they were off.
- It adds the event Activate E-invoicing System to the log.
- It reloads the invoice forms in the main window.
- The dialog closes and E-Invoice Settings opens.
If an error message appears during step 7 the dialog stays open and the system is not activated. Check the data before you try again, and go back to the backup if needed.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| "E-invoice activation error" with "Company info error" and "Must set Company Name in tax settings" | The company name is empty. | Enter the name in Tax Settings. |
| "Company info error" and "Tax Registration Number must be 15 characters in length, and begin and end with digit 3." | The tax number does not meet the rule. | Correct the number. |
| "Company address info error" and "Building Number must be 4 digit number" | The building number is not 4 digits. | Correct it. |
| "Company address info error" and "Post Code must be 5 digit number" | The post code is not 5 digits. | Correct it. |
| "Company address info error" and "Additional Number must be 4 digit number at least" | The additional number is not 4 digits. | Correct it. |
| "Company address info error" and "Unit No. in address is invalid" | The unit number is empty or contains non-digits. | Correct it. |
| "Company info error" and "Please set identifier value" | The company identifier is empty or has Arabic letters. | Set the identifier. |
| "Must set Company Address in tax settings" | A company address field is missing: city, region, street, building number, additional number, governorate, unit number or post code. | Complete the address. |
| "Invalid basic-currency code": "The base currency name in the file must be Saudi Riyal and its symbol must be SAR or R.S." | The base currency code is neither SAR nor the Arabic riyal symbol. | Change the currency code. |
| "Invalid date": "The date must be greater than today's date" | The postponement date is today or earlier. | Choose a later date. |
Enable Phase Two of E-invoicing System
Activates phase two and saves the e-invoice administrator password. The program does not connect to the authority in this dialog. The connection is made later from the settings pages.
E-invoice Administrator
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Password | The password of the e-invoice administrator. | Yes | The program asks for it later before some key settings, so keep it, as the text says. Up to 255 characters. |
| Confirm Password | The password again. | Yes | It must match the first. |
Activation Date of Phase 2
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Delay invoices processing by the phase 2 requirements to date of: | Postpones the start of phase two. | No | Not ticked at first. |
| Date | The start day. | Yes, when postponing | Disabled and showing 01-01-2023 until you tick the postponement. It must be after today. |
The text says that e-invoices are issued under phase one conditions and settings until phase two is enforced or the date arrives, and that clicking OK hides the window and adds new pages to the settings window.
Buttons
| Button | What it does |
|---|---|
| OK | Runs the checks and the activation steps below. |
| Close | Closes without activating. |
What happens at OK
- An empty password: "Please enter password". The same for an empty confirmation.
- The two passwords differ: "Password does not match": "Please enter correct password".
- A postponement date of today or earlier: "Invalid date": "The date must be greater than today's date".
- A question with Yes and No: "Enable the phase 2 of KSA e-invoicing system". Its text: "Activating phase 2 of E-invoicing will result in changes over the processes of verification, QR code generation and connection with ZATCA server. Do you want to continue?".
- A question with OK and Cancel: "Are you sure you want to activate the phase 2 of KSA e-invoicing?". Its text: "Please be informed that activating phase 2 of Saudi Arabian E-invoice system will enforce the following restrictions and procedures in program:" with two points: "Must set identifiers and their values for company and customers." and "Must establish connection with the ZATCA server before printing the e-invoices and their associated notes even though they have not sent yet."
- The tax number check, then the company check. See the table below. The title of the errors is "Error in activating Tax System".
- The same backup question as in the e-invoicing activation. Cancel stops the activation. After OK the program goes on whether or not you complete the backup.
- The program writes to the file, and none of it can be undone:
- It activates phase two and saves the postponement date, if any.
- It saves the administrator password in the file, encrypted.
- It reloads the invoice forms.
- It adds the event Enable the phase 2 of KSA e-invoicing system to the log.
- The dialog closes and E-Invoice Settings opens with the phase two pages. If you postponed, the Phase 2 activation page shows until the date arrives or you enforce it.
This activation does not change the status of any existing invoice.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| "Error in activating Tax System" with "Company info error" and "Tax Registration Number must be 15 characters in length, and begin and end with digit 3." | The tax number does not meet the rule. | Correct it in Tax Settings. |
| "Error in activating Tax System" with "The VAT number is a member of VAT group, you should set a TIN in Tax Settings - Company Info." | The 11th digit of the tax number is 1 (a VAT group) and the distinct tax number is empty. | Enter the distinct number. |
| "Error in activating Tax System": "There are customers classified as GV (VAT group) but their tax number and company tax number are not the same." then "If continue, you will not be able to issue the electronic invoices for this customer in accordance with the requirements of phase 2 of e-invoicing system." then "Do you want to continue?" | The number is a VAT group and a customer with tax code GV has a different tax number. | Click Yes to go on or No to fix the customers. |
| The same message with the text "The VAT number is not a part of VAT group, customers classified as GV (VAT group) are not allowed." | The number is not a VAT group and a customer has tax code GV. | Same as above. |
| "Error in activating Tax System" with "Latin company name must be set, Arabic letters are not allowed." | The Latin name is empty or has Arabic letters. | Enter it in Tax Settings. |
| "Error in activating Tax System" with "Latin Company Name should not be more than 30 characters." and the name | The Latin name is longer than 30 characters. | Shorten it. |
| "Please enter password" | The password or the confirmation is empty. | Enter both. |
| "Password does not match": "Please enter correct password" | The two passwords differ. | Enter them again. |
Activate Tax Refund Integration
Activates the connection with the tourist tax refund service. The only condition in the dialog is that a file is open.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| System | The refund system to connect to. | No | Disabled, with one choice: GLOBAL BLUE. |
The text says that clicking OK hides the window and new windows appear to complete the settings, and then "Cannot disable the system after activate it."
| Button | What it does |
|---|---|
| Ok | Asks about the backup, then activates the system. |
| Close | Closes without activating. |
At Ok:
- A question with OK and Cancel: "Click OK to make a backup copy". After OK the backup window opens. After Cancel the program skips the backup and goes on with the activation.
- It activates the system in the file, reloads the invoice forms and adds the event Activate Tourists Invoices Integration System to the log.
- The dialog closes and no settings window opens. Open E-Invoice Settings to find the Tourists Service page and set the connection details there.
The dialog shows no other messages.
Related
This page applies to alameen ERP 10, version 10.1.79.764.