Skip to main content

Archives

The Archives window shows the archive files (XML and PDF) that alameen ERP 10 generated for one Saudi invoice. From it you check that a file still matches the invoice, open it, send the archive message to the customer, and set the link of the file on the cloud. For the steps see Archive and verify e-invoice files.

Opening the window​

  • From the ribbon: Systems > KSA Taxes > E-invoice > Archives. The command appears if your licence includes automatic archiving of the Saudi e-invoice. It has no check box in Users Management.
  • From an invoice: in its Taxes menu choose Archives. The command appears when automatic archiving is on in the settings and the status of the invoice is one of the statuses that are archived. The window opens with the invoice serial number in the field and loads its files.
  • From the note window.

Before the window opens from the ribbon, the program checks the e-invoice settings as in the checks before the window opens of the Tax Invoices List.

The statuses that are archived​

An invoice is archived when its status is Ready for reporting (or Ready for reporting - For other), Reported, Reporting - Warning, Reporting - Error, Cleared by the authority, Cleared - Warning, or Approved (phase one). For other statuses, such as Ready for clearance, Clearance - Error and Reporting - Doubt, the program does not generate an archive file.

The archive file name is the tax number of the company, then _, then the date and time of the last event of the invoice in the form 20261201T143005, then _, then the serial number of the invoice with spaces, slashes and backslashes replaced by a dash. The extension is .xml or .pdf. The folder is the local storage folder set in E-Invoice Settings. If the folder already holds a file with the same name that has no record, the program does not replace it.

Fields and buttons​

ItemDescriptionValues and rules
Serial NumberThe serial number of the invoice you want.Required on Refresh, or the message "Serial Number is required: Please enter the serial number" appears. The match is exact, not by start. It searches invoices, not notes.
RefreshLooks for the invoice and loads the records of its files.If no invoice has the number: "Invoice not found: No bill found with selected number". If it has no record: "No record found: No records are archived, you can verify any selected file by using Validate Specific File command".
Generate Archive FilesGenerates the automatic archive files of the invoice.Appears if the invoice was found and has no record from automatic archiving. It asks for confirmation in a box titled "Invoice Archiving" with no question text, then runs, and on success refreshes the list and shows "Operation successfully completed". If automatic archiving is not on in the settings, the operation generates nothing and the same message appears.
Messages SettingsA strip of four cells that sums up the messages settings.Appears when sending messages is on: the format of the sent file (XML or PDF), the sending type (None, Static path defined in Settings, Dynamic path set by user or Attach file), the protection (Protected or Without password), and the way of sending (Auto or Manual).
The listThe archive files of the invoice, in the order they were generated.The columns are below. You cannot sort by clicking the headers.
ValidateValidates the file selected in the list.Enabled for an XML file that exists.
OpenOpens the selected file with the program that opens files of this type on the computer.Enabled for a file that exists.
Send ArchivesSends the archive message of the invoice.Appears when sending messages is on. Enabled for an existing automatic file of the format set for sending.
Cloud URLSets the link of the invoice file on the cloud.Appears when sending messages is on with the type Dynamic path set by user. Enabled under the same condition as Send Archives.
Validate Specific FileOpens the window that validates a file from any place.Enabled once the invoice was found.
CloseCloses the window.

List columns​

ColumnWhat it shows
The pathThe full path of the file.
Operation TimeThe date and time the file was recorded.
File TypeXML or PDF.
AutoYes if the program generated it automatically, No if a user generated it by hand from the invoice.
ExistsYes if the file is on the disk now, No if it was deleted or moved. A row whose file is missing shows in the error colour.
SentYes if a message about this file was sent. Shows when sending messages is on.
Cloud URLThe link you set for the file. Shows with the sending type Dynamic path set by user.

Double-click a row and an information box lists the values of the row with numbers. Right-click gives the command Grid Lines only.

What Validate does​

The program validates the selected file according to the status of the invoice:

  • Approved (phase one): it builds the current invoice file in memory and compares its fingerprint with the fingerprint of the file. If they differ and the difference may be only in fields that are allowed to differ, it asks "The file is valid for the invoice: The file is valid and comply with the invoice, other than some allowed differences in the fields. Do you want to see details?". Yes opens Field Details. No closes the question with no other message. If the invoice fingerprint differs from the one recorded when the file was generated, "Invoice error: The archive file is not compliant with invoice, but it was matching it the moment when generated" appears; if the file differs from its own recorded fingerprint, "File error: The archive file is invalid while the invoice is correct" appears.
  • The other statuses that are archived: it compares the fingerprint of the file now with the one recorded at generation. If they differ, "File error: The archive file is invalid while the invoice is correct" appears.
  • If they match, or there is no difference: "Operation successfully completed: Operation successfully completed, the archival file is completely match the invoice." If the file name does not follow the name format above, the note "Note: Archival file name does not match the required format." is added, and the message shows with a warning sign.

Validate Specific File window​

It validates a file from any folder instead of the files of the list, for example a file that was moved or saved outside the program. It opens from Validate Specific File.

FieldDescriptionRequiredValues and rules
Serial NumberThe serial number of the invoice being validated.NoRead only, filled by the program.
The pathThe path of the XML file.YesFilled by Browse. The button Validate is enabled only after you choose a file with Browse.
ButtonWhat it does
BrowseOpens a file picker filtered to XML files.
ValidateValidates the chosen file. If the path is empty: "Error in file path: Please specify the file path". If the file does not exist: "Error in file path: Folder not found".
CloseCloses the window.

The validation is as in Validate of a row, with these differences. In phase one, if the fingerprints differ and the difference cannot be explained by allowed fields, "File error: The selected archival file is invalid to the invoice" appears. If you choose No in the question about the details, "Operation successfully completed" appears without the sentence about the complete match. For the other archived statuses the program compares the fingerprint of the file with that of the signed document kept in the invoice. If they match, the success message appears. If they differ, and also for statuses that are not archived, a box with no title and no text appears, or only the note about the file name when the name does not follow the format. So treat an empty box as a sign that the file does not match.

Field Details window​

It shows the differences between the invoice and the file. It opens from Yes in the question "Do you want to see details?", and from the command Compare Invoice with Sent File of the invoice.

ColumnWhat it shows
FieldThe field name, preceded by its section: Company Info, Client Info, Material Info or Invoice Info. For example "Company Info - Company Name".
Value in billThe value in the invoice now.
Value in fileThe value in the file.
RowThe invoice line number if the difference is in a line, empty otherwise.

The address fields (country, city, region, district, street, ZIP code, building number, additional number and unit number) and the identifiers appear for the company and for the customer. The material differences include the material name, unit, price, quantity and value added. The invoice differences are the items count, the total bill, the rounding amount, the large rounding amount and Other differences. Rows with serious differences show in the error colour. If the window was opened from Validate Specific File and the file name does not follow the format, a warning icon and the note about the name show at the bottom. The only button is Close.

Set E-invoice Path window​

It opens from Cloud URL on a chosen file, and when a message with the sending type Dynamic path set by user is sent for a file that has no link.

FieldDescriptionRequiredValues and rules
Serial NumberThe invoice number.NoFilled by the program. The program does not read what you type in it.
E-invoice PathThe link of the file on the cloud.YesText up to 255 characters. If empty, the message "Invalid path: Please select the path" appears.

Ok saves the link in the record of the file you chose (when opened from Cloud URL) and refreshes the list. Cancel closes the window without saving. If the window opened while a message was being sent, cancelling it stops the sending of that message.

Messages​

MessageWhy it appearsWhat to do
Serial Number is requiredYou clicked Refresh with the field empty.Type the serial number.
Invoice not found: No bill found with selected numberNo invoice has this serial number.Correct the number.
No record found: No records are archived...The invoice has no archive record.Generate the files, or validate a specific file.
Invoice Archiving (no text)The confirmation box of Generate Archive Files.Ok continues and Cancel stops.
Operation successfully completedAfter generating the files, or after Send Archives (title "E-invoice").Nothing.
Error in file pathIn Validate Specific File: the path is empty or the file does not exist.Choose the file with Browse.
File errorThe file does not match the invoice or its fingerprint changed.Generate the file again.
Invalid pathE-invoice Path is empty.Type the link.

This page applies to alameen ERP 10, version 10.1.79.764.