Skip to main content

E-invoices Requirements Verification

The E-invoices Requirements Verification wizard in alameen ERP 10 checks your file before you start e-invoicing, or while you use it: company information, work units and terminals, currencies, customers, invoices, their serial numbers and counters, their archive, and what was sent to the authority. It has 11 pages, and some of them appear only with your settings. The materials page that is registered with this wizard belongs to the UAE wizard and does not appear here. The wizard only lists problems. It fixes nothing. You fix each problem in the card, invoice or settings that it came from. For the steps, see Verify e-invoicing requirements.

Opening the window​

Click Systems > KSA Taxes > E-invoice > E-invoices Requirements Verification. The conditions:

  • The tax country is Saudi Arabia, and the Saudi e-invoice system is activated in the file. See Activate e-invoicing in Saudi Arabia.
  • You have the E-invoices Requirements Verification permission in the Users window.
  • If the system is not activated when you click the command, nothing happens.

How the wizard works​

  • The check runs when you click Next. Each page shows what it will check. When you click Next, the program checks what the page covers, shows a progress bar, shows the problems in a list window, and moves to the next page. Problems do not stop you from going on.
  • The problems window is a separate list that stays open beside the wizard. The rows of each page are added at the end of the list. If you run a check again (Back, then Next), the rows are added once more, so close the window first to start a new list. Red rows are errors, and plain rows are warnings. Each row has the group title, the source name if there is one (a customer name, or an invoice type and number), and the message. The program also writes the rows to a text log file.
  • Cancel: the Cancel button asks "Are you sure you want to exit and cancel the maintenance operation?" and closes the wizard if you answer yes.
  • The wizard changes nothing in the file.

Each page has Next, Back and Cancel. The last page has Finish and Back.

The order of the pages​

PageAppears
WelcomeAlways
Set Tax PeriodAlways
Company / Corporate Information VerificationAlways
Units and Devices Information VerificationWith phase two only
Main Cards and General Options VerificationAlways
Customers VerificationAlways
Electronic Invoices VerificationAlways
Invoices Clearance and Reporting VerificationWith phase two only
Electronic Invoices Archiving VerificationIf archiving is enabled in the licence, and automatic XML archiving or saving PDF is on in the e-invoice settings
Validate sent XML filesWith phase two only
FinishAlways

Phase two here means phase two is activated in the file. See Enable phase two of e-invoicing. In phase one, after the invoices page you go to archiving (if enabled) and then to the end. In phase two, if archiving is not enabled, the archive page is skipped and you go from invoice statuses to sent XML files.

Each page shows its title and one or more lines that say what is checked. There is one image per page.

Welcome​

Text only: "This wizard enables you to verify if the e-invoice requirements implemented in company info, currencies, customers cards and the electronic invoices created in the file." Nothing is checked here.

Set Tax Period​

FieldDescriptionRequiredValues and rules
Tax PeriodLimits the customer, invoice, serial number, status, archive and XML checks to invoices dated inside the period.NoThe list has None (all invoices), then the tax periods of the file that are open, not closed, in number order. Transferred periods that ended before the start date of the file are left out. Default None.

The period does not affect the company information, units and terminals, or general options checks. A few other checks ignore the period, and each is noted where it applies.

Company / Corporate Information Verification​

The page lines read: "Verify company / corporate info", "Verify basic currency" and "Verify the use of Saudi terminology".

The check reads the tax settings (company information). It lists no source, so each row is one message. Rows whose message starts with "It is..." are warnings, and the rest are errors.

MessageWhen it appears
Error in company nameThere are no settings, or the company name is empty.
Address errorAn address field in the company information is empty: city, region, street, building number, building name, governorate, emirate or online user name.
Tax number error, the number must be 15 characters in length, and begin and end with digit 3.There is no VAT tax number, or it does not follow this format.
The base currency name in the file must be Saudi Riyal and its symbol must be SAR or R.S.The base currency (value 1) has a code other than SAR or ر.س..
Address error - Building number must be 4 digit numberThe building number in the company information is not 4 characters long.
Address error - ZIP code must be 5 digit numberThe online user name field in the company information is not 5 characters long (the check treats it as the postal code).
Identifier not setThe identifier type in the company information is not set.
Identifier value not setThe identifier value is empty.
You should enter Tax Identification Number, and it must be 10 digit number.Phase two, the company number belongs to a VAT group, and the tax identification number is not 10 digits.
Unable to enter the TIN, because the company is not a member of VAT group.Phase two, the company is not in a VAT group, and the tax identification number is not empty.
Must set Latin Name in Tax SettingsPhase two, and the Latin name is empty.
It is preferred to use Saudi terminology from: Options - TermsWarning. The terms option in the program is not the Saudi terms file.
It's preferable to not use "Discount Percentage is Division Percentage" option when working on KSA e-invoiceWarning. The option is on.
It is recommended to set Activity in tax system settingsWarning. Phase two, and the activity is empty.
It is recommended to set Branch Name in tax system settingsWarning. Phase two, the company is not a VAT group, and the branch name is empty.
It is recommended to set Short Address in tax system settingsWarning. Phase two, and the short address is empty.

The tax period does not affect this page. Fix these problems in the tax settings (company information), in the currency card and in the program options.

Units and Devices Information Verification​

It appears with phase two only. The page lines read: "Verify information of both units and devices" and "Verify that units and devices information matches the company / corporate one".

All rows are errors. A row has one message, followed by the unit or terminal name and the faulty value. The tax period does not affect it.

MessageRecords listed
There are multiple configurations on the same deviceTerminals (by name) with more than one registration that is not removed.
The settings which is currently used contains invalid serial number formatA stand-alone terminal that is not removed (not linked to a unit, not from another data source), or a unit that is not removed, whose serial prefix does not follow the approved format: product name, unit kind, then pc for a terminal or u for a unit, then the file code defined in the serial number options. The name and the prefix appear with the message.
Duplicate Serial NumberA prefix with a serial number used by more than one stand-alone terminal, or by more than one unit (removed ones count).
Unit Name is duplicatedA name used by more than one unit or stand-alone terminal.
An active terminal related to a unit which is not foundA terminal that is not removed and belongs to a unit that does not exist.
An active terminal related to a revoked unitA terminal that is not removed and belongs to a removed unit.
The settings which is currently used contains incorrect Company NameA stand-alone terminal or a unit that is not removed whose saved company name differs from the Latin name in the tax settings.
The settings which is currently used contains invalid Tax NumberIts saved tax number differs from the company number.
The settings which is currently used contains invalid TINOnly if the company belongs to a VAT group: the saved tax identification number differs from the company one.

To fix: these records cannot be edited after registration. Use Work units and terminals to remove the settings and register again.

Main Cards and General Options Verification​

The page title is "Main Cards and General Options Verification", and its line reads "Verify currencies".

All rows are errors, and the tax period does not affect them.

MessageRecords listed
Currency error - Currency code must match one of the codes allowed in E-invoice SettingsEvery currency in the file whose code is neither among the currency codes defined on the Currencies tab of the e-invoice settings nor ر.س.. The currency name follows the message.
The option Activate Log File in options - ineffective saveThe option to activate the log file is off.
The option Force User to Use Password in settings - ineffective saveThe option to force the use of a password is off.

Customers Verification​

The page lines read: "Verify the customer tax number" and "Verify the customer address info".

FieldDescriptionRequiredValues and rules
Verify all file customersExtends the check to all customer cards.NoCleared by default, and the wizard remembers it until you close it. If cleared, the customers checked are those used in invoices of the sales forms that generate entries or of the sales return forms, dated inside the chosen tax period if you chose one.

Each row has the customer name. Rows are errors except those marked as warnings. The rules check the tax and address data by the customer type in the card: commercial, personal - commercial non-resident, and legal person (government or outside the kingdom). The tax code XP means export.

MessageCustomers listed
Tax number error, the number must be 15 characters in length, and begin and end with digit 3.Commercial type, with a VAT tax number that is not empty and does not follow the format.
Address errorCommercial type, or legal person with a code other than XP, with an empty address field among: country, city, region, district, street, building number, postal code. For a legal person with code XP: country, city, region, street and postal code only.
Address error- Country code must match one of the codes allowed in E-invoice SettingsCommercial or legal person, with a country code that is not empty and is not among the countries defined on the Countries tab.
Address error - Building number must be 4 digit numberCommercial, or legal person with a code other than XP, with a building number that is not empty and is not 4 digits.
Address error - ZIP code must be 5 digit numberThe same conditions, with a postal code that is not empty and is not 5 digits.
Address error - Additional number must be 4 digit numberThe same conditions, with an additional number that is not empty and is not 4 digits.
The customer is commercial type and requires a tax numberCommercial with no tax number.
Customer is personal - commercial non-resident and no tax number is requiredPersonal - commercial non-resident with a tax number.
The customer is legal person type - government or outside-kingdom entity - and no tax number is requiredLegal person with a code other than XP and a tax number.
Customer type is not set (warning)Customers with no type. It appears only when Verify all file customers is selected.
Country code must be SA because the customer tax code is XP.Commercial or legal person with a code other than XP, whose default address country is not SA. (The English text of this message says "is XP" while the check lists customers that are not XP.)
Identifier value not setPhase two: a legal person with no tax number, or with code XP, whose identifier type is not set or whose value is empty.
Tax Number must be the same as the one specified in the company / corporate.Phase two, and the company belongs to a VAT group: a customer with the VAT group code whose number differs from the company number.
You should enter Tax Identification Number, and it must be 10 digit number.Phase two: a customer with the VAT group code and the company number, or a customer whose tax number has the VAT group format (digit 11 is 1), and whose tax identification number is not 10 digits.
Unable to enter the TIN, because the customer is not a member of VAT group.Phase two: a 15-digit tax number that does not indicate a group, and a tax identification number that is not empty.
Unable to use the tax code of VAT Group, because the company is not a member of VAT group.Phase two, and the company is not a VAT group: a customer with the VAT group tax code.

Fix these errors in the customer card. See Customer tax pages.

Electronic Invoices Verification​

The page lines read: "Verify sequential numbers", "Verify electronic invoices types and their associated notes" and "Verify electronic invoices (customer, status and correct time)".

Three checks run together and add their rows to these groups: "Non-Compliant Invoices with e-invoice requirements", "E-invoices sequential numbers errors" and "Approved invoices that conflict with the taxation system". All follow the tax period except where noted. A row shows the invoice number or type.

In the tables below, an issued invoice is an invoice with status Approved, or with any of the statuses Ready for Reporting, Reported to the Authority, Ready for Clearance and Cleared by the Authority, including their error, warning and uncertain variants. An issued invoice is not a draft, not unprepared, not outside the system, and not a compliance test invoice. A sales invoice is one from a sales form that generates an entry, or from a sales return form. The start date of phase one is 4-12-2021.

Invoices that conflict with the requirements​

MessageInvoices listed
Electronic invoice dated into futureAn issued sales invoice whose time is after now.
Serial number is later to an invoice that has later dateAn issued sales invoice with a serial number whose time is earlier than that of an issued invoice with the same code and a lower number.
The credit note is not associated to any electronic invoiceAn issued sales return with no related invoice, whose returned invoice date is after the start date of phase one, and that is not a previous-year return. It does not appear if an option that allows a return not tied to an invoice is on.
Credit note is related to an electronic invoice outside the system (warning)An issued return related to an invoice whose status is Out of System.
Credit note whose type (normal/simplified) is different from its associated e-invoice typeA simplified credit note related to a non-simplified invoice, or a normal credit note related to a non-normal invoice.
Credit note whose time is before its associated e-invoice timeAn issued return whose time is before the time of its invoice.
Credit note whose customer is different from its associated e-invoice customerAn issued return whose customer is not the customer of its invoice.
The invoice is simplified for a customer of commercial typeAn issued simplified sales invoice (or note) for a customer of commercial or legal person type.
The invoice is normal (not simplified) for a customer of personal type - commercial non- residentAn issued normal sales invoice for a customer of this type.
The invoice in Draft status, but it have entryA sales invoice with status Draft that has an entry.
Credit note whose status is different from that of its associated electronic invoiceA sales return whose status differs from that of its invoice, where neither is Out of System.
The invoice status is Outside the System and its date is greater than or equal to the first phase' effective dateA sales invoice Out of System dated in phase one or later. The date appears in the message.
The invoice is electronic and approved , and its date is less than first phase' effective dateAn issued sales invoice dated before phase one.
The invoice is electronic and not approved , and its date is less than first phase' effective date (warning)A sales invoice with status Not Prepared, Draft or Reserved Draft dated before phase one.
The invoice is approved for a customer of None typeAn issued sales invoice with an electronic type, for a customer with no type.
The invoice is simplified for a customer of XP typeAn issued simplified sales invoice for a customer with code XP.
Credit / Debit note is related to an invoice outside the system (warning)A credit note related to an invoice that is Out of System, while the note itself is not.
A draft approved from another fileWhen the serial number includes a code and the file code is defined: an issued sales invoice (not a return) that has a saved file code and whose serial number does not start with it. The saved file code appears in the row.
Approved e-invoice date ( approval date ) is invalidAn issued sales invoice (not a return) dated after its issue date, or dated too early: if the issue day is before the 15th, before the first day of the previous month; otherwise, before the first day of the issue month.
Approved note date ( approval date ) is invalidAn issued return whose date differs from its issue date.
Materials under profit margin method in a purchase invoiceA purchase or purchase return invoice with a material flagged for the profit margin method in its tax card. The status does not matter.
Materials under profit margin method in approved and reported invoiceA sales invoice with a status from ready up to cleared, with a profit margin material.
The invoice based on profit margin, but contains materials which are not under profit marginAn invoice with status Profit Margin that has a material that does not use it.
The invoice issued under profit margin and the tax incorrectly calculatedAn invoice with status Profit Margin that has a line with a positive profit margin and zero tax, or the reverse.

Serial number errors​

The checks depend on the serial number format option in the e-invoice settings and on the lengths of its parts defined there: code, digits, file, branches, invoice forms, external devices and year. The first four messages always run.

MessageInvoices listed
Electronic invoice have no sequential numberAn issued sales invoice with no serial number, no code part, or a zero number part.
Sequential number assigned to non-electronic invoiceAn invoice with status Not Prepared, Draft, Reserved Draft or Out of System that has a serial number.
The sequential number code not match the defined oneIssued, and its saved code differs from the first characters of its number.
Sequential number numeric part not match with numbering seriesIssued, and the end of its number is not equal to its running number.
Sequential number format error - Digits count is not equal to the defined count in settingsIssued, and the length of its number differs from the code length plus the digit count.
Sequential number doesn't contain the file code that defined in settings (warning)Issued, the file code is required in the format, and the start of its number differs from it.
Sequential number contains branch code not defined in settings (warning)The branch part is neither zeros nor a defined branch code.
Sequential number contains branch code assigned to other branch in settingsThe branch code in the number differs from the code defined for the branch of the invoice.
Sequential number contains invoice form code not defined in settings (warning)The invoice form part is neither zeros nor a defined form code.
Sequential number contains invoice form code assigned to other invoice form in settingsThe form code in the number differs from the code defined for the invoice form.
Sequential number contains external system code not defined in settingsThe external device part is neither zeros nor a defined code.
Sequential number doesn't contain the year code that defined in settings (warning)The year code differs from the defined one.
Missing sequential numberFor each combination of defined codes: a number between the lowest and the highest that has no issued invoice or note. The tax period does not limit it.
Duplicate sequential numberA serial number repeated among issued invoices.
Sequential number code starts with number other than one (warning)The lowest number of a code combination is neither zero nor one. It does not appear if you chose a tax period and the first number in the whole file is one.
SN code is incorrectThe saved code of the invoice differs from the code the program calculates for it from the settings.

Approved invoices that conflict with the taxation system​

MessageInvoices listed
The invoice is approved but it is not tax invoiceAn issued invoice, from any invoice form, that has a material with no tax code.
The invoice is approved but will not be included in VAT Return due the invoice form doesn't generate entry (warning)An issued sales return from a form that does not generate entries.
The invoice is approved but will not be included in VAT Return due the invoice have no entryAn issued invoice from a form that generates entries, with no entry.

Fix these problems in the invoice, the customer card, the material card and the serial number settings. See E-Invoice details (Saudi Arabia).

Invoices Clearance and Reporting Verification​

It appears with phase two only. The page lines read: "Verify information of invoices cleared" and "Verify information of invoices reported".

The group is "Error in invoices submitted to Authority". The sending record of an invoice holds its QR code, signature and counter. "Information" here means that record. All rows are errors except where noted, and all follow the tax period.

MessageInvoices listed
The invoice lacks the information of signature or QR codeAn invoice with no sending record whose status is not Not Prepared, Approved, Draft, Reserved Draft, Out of System, Sent with the Taxpayer's Knowledge, Tax Group, Outside the Scope of Tax or Profit Margin.
The invoice contains signature information, although its status doesn't allow soAn invoice with one of the statuses in the previous row that has a sending record.
Bill signature is duplicatedAn invoice with more than one preparation record.
The invoice lacks the signature informationA preparation record with no QR code, hash, previous hash or XML file, or with a counter below 1, where the status is not a compliance invoice.
The settings of terminal issued the invoice is not foundThe terminal in its record does not exist.
The unit issued the invoice is not foundThe unit in its record does not exist.
The invoice is the first issued invoice but it contains a previous invoice informationIts counter is 1 and it has a previous hash other than the initial one, or a previous invoice.
The invoice contains no previous invoice information although it is not a first invoiceIts counter is above 1 and its previous hash is the initial one, or no previous invoice is recorded.
The invoice issued to a server other than the server set in the settings (warning)The service type or address in its record differs from what is registered for the unit or stand-alone terminal.
The invoice issued from a unit other than the one related to the deviceThe terminal is stand-alone and the record has a unit, or the reverse.
Duplicate Counter Number - terminal or unit: counterA counter repeated on a stand-alone terminal or on a unit. The two compliance statuses are not counted.
Missing counter - name - numberA number between the first counter after the transfer and the highest counter (inside the period) of a unit or stand-alone terminal that has no invoice or note in the whole file.
Previous invoice counter errorTwo invoices with consecutive counters, where the previous hash of the later one is not the hash of the earlier one, or its previous invoice is different.
Pay Government Sale InvoiceFour cases show the same text: an invoice with a line that has a government tax code and a status other than Cleared by the Authority, Cleared - Warning, Cleared - Error or Pending; an invoice that mixes government and non-government lines; a government invoice whose recorded payment state does not show a payment; or an invoice with a recorded payment that is not a normal invoice.

The comparison between counters covers invoices and notes together. See the Counter Numbers by Work Unit report to see the numbers.

Electronic Invoices Archiving Verification​

It appears if archiving is enabled. The page lines read: "Verify that the invoices archived automatically", "Verify archives and their matching to invoices" and "Verify that the archives names are correct and that they follow the same defined format".

The group is "Approved invoices archiving errors". It checks every issued invoice inside the period. The XML check runs if automatic XML archiving is on, and the PDF check runs if saving PDF is on in the e-invoice settings. Rows are errors, except where marked as warnings, and the file path appears with them.

MessageCondition
The invoice is not automatically archived in XML format / PDF formatThe invoice has no automatic archive record.
XML file is not found / PDF file is not foundThe record exists but the file is not at its path.
XML file is invalidThe file exists. For an invoice with status Approved (not sent): the invoice hash agrees with the saved one and the file hash does not, or the invoice hash and the file hash both differ. For the other invoices that can be archived: the file hash differs from the saved one.
There are modifications that led to discrepancy between invoice and XML fileAn invoice with status Approved that was modified after archiving: its current hash differs from the saved one and the file hash agrees with it.
The XML file name / PDF file name does not match GAZT regulations (warning)The file name does not end with the name built from the issue time and the serial number.
The XML file path / PDF file path does not match the path defined in the settings (warning)The file is not under the folder set in the e-invoice settings.

The content of the PDF file is not checked.

Validate sent XML files​

It appears with phase two only. The page lines read: "Verify that an XML file was sent to ZATCA" and "Verify that the sent XML file is valid and compliant with the current invoice data".

It checks issued invoices in the period whose status is Ready for Reporting, Reported to the Authority, Reporting - Warning, Reporting - Uncertain, Ready for Clearance, Cleared by the Authority, Cleared - Warning or Ready for Reporting - For Others, and that have a sending record. Reporting - Error and Cleared - Error are not included. The program compares each invoice with the XML file that was sent for it, and lists one row for each invoice that differs: only the first difference, named by the field that differs. The row color is red or plain by the severity of the difference. The group is "Difference between invoice and sent file". A progress bar counts the invoices.

Finish​

The text reads: "Congratulation, the verification process has been completed, the entered information has been validated as per the e-invoice requirements." It appears even if earlier pages showed problems, because it is fixed text. The buttons are Finish and Back. Finish closes the wizard. The problems window stays open until you close it.

Materials page (UAE wizard)​

The page "Verify Items" with the option "Verify All Items in the File" is not part of this Saudi wizard. It belongs to the UAE wizard and does not appear here.

What to fix and where​

The wizard fixes nothing. Each fix is made in its own place:

ProblemWhere to fix it
Company information, currencies and optionsThe tax settings, the currency card and the program options.
CustomersThe customer card.
InvoicesThe invoice itself, or its conversion by its status, with the Taxes commands in it.
Work units and terminalsRemove the settings, then register again from Work units and terminals.
Serial numbersThe serial number options tab of the e-invoice settings.

Messages​

MessageWhy it appearsWhat to do
Are you sure you want to exit and cancel the maintenance operation?You clicked Cancel on any page.Yes closes the wizard. No continues.

This page applies to alameen ERP 10, version 10.1.79.764.