Validate Tax Invoices
Validate Tax Invoices compares the recent sales and sales return invoices of your file with what the Egyptian Tax Authority holds. It lists every difference it finds, and fixes some of them with one right-click command. A second window, Duplicate sent invoices, opens for an invoice for which the Authority found more than one document. For the steps, see Validate tax invoices.
Opening the window
Click Systems > Egyptian Taxes > Tools > Validate Tax Invoices. The button carries that name, and so does the window title.
The conditions that control it:
- Your licence must include the Egyptian tax system, and the system must be activated in the file. Otherwise the button does not appear.
- Your user needs the permission Validate Tax Invoices in Users Management > Operations.
- The program checks the settings first. If an invoice form, the company, its address, User ID or Password is missing, it shows the same message as the Tax Invoices and Receipts List and does not open the window.
The window
The window has one list and two buttons. The list is empty when the window opens. Click a column heading to sort the rows by it.
| Button | What it does |
|---|---|
| Validate | Starts the comparison and fills the list. The button is disabled while it works and comes back when it ends. See What happens when you validate. |
| Close | Closes the window. |
What happens when you validate
Each click on Validate starts again and clears the previous list. The program works in this order:
- It shows a warning with the text "Validating invoice from Website" and, under it: "Please note that the invoices that will be validated are invoices that have been added or sent in the last 90 days." Click OK to continue.
- It shows a progress window titled "Connecting to Web Service" and connects to the service. If the connection fails, a message gives the reason and the list stays empty. The reasons are in Send invoices.
- It reads from the file the invoices of the two invoice forms set in the Egyptian Tax Settings (sales and sales returns) whose date, or whose date of the last event with the Authority, is within the last 90 days. E-receipts are not part of this comparison, and the program does not apply the security level to these invoices.
- It reads all pages of the recent documents from the service. The number of documents in each request is the invoice count you set in Technical Support Settings in the settings (25 by default). The progress window shows "Requesting tax invoices from Website from 1 to 25". You can click the cancel button of the progress window. The message "The operation has been stopped" appears and nothing in the file changes, because this window writes nothing while it compares.
- It compares each invoice of the file with the documents the service returned. The service links a document to its invoice by the internal number. See Kinds of difference.
- It checks each document that the service returned and for which the file has no invoice, and shows it with the error "The invoice is not found in the file". This includes documents made by another program, documents your company received from others, and invoices older than 90 days.
If the validation ends and finds no difference, the list stays empty and no message appears. If the service returns documents but the file has no invoice in the period, all the documents appear as "not found in the file".
If a request to the service fails with a general error, or the invoices cannot be read from the file, the validation stops without a message and the list stays empty. An empty list proves that everything matches only when the progress window completed without a message.
Columns
| Column | What it shows |
|---|---|
| The Error | The kind of difference. Empty for a row that was fixed. |
| Invoice | The invoice number in the file. Empty for a document that has no invoice. |
| Invoice Status | The status of the invoice in the file. Empty for a document that has no invoice. |
| Invoice ID | The electronic number of the document at the website. Empty if the program did not find one. |
| Invoice status in Website | The status of the document at the website. |
| Sender | The name of the party that issued the document. |
| Recipient | The name of the party the document was addressed to. |
| Amount | The total of the document as the service returned it. |
| Date | The issue date of the document. |
| (UTC) Received Time | The date and time the Authority received the document. |
The last six columns are empty in a row for which the program found no document at the website. A fixed row appears in a prominent style with an empty The Error column, and Invoice Status shows the new status. The invoice statuses are those of the Tax Invoices and Receipts List.
Kinds of difference
The The Error column shows one of these texts. The program sorts the invoices from oldest to newest, then adds the documents that have no invoice at the end of the list.
| Error | When it appears | What the row offers |
|---|---|---|
| The invoice has been sent out multiple times | The service found more than one document for the same invoice. | Show duplicated invoices.... No fix command. |
| The invoice under doubt of sending found in the website | The invoice status in the file is Unsent - doubt of sending and the service found its document. | Fix invoice. |
| The invoice under doubt of sending is not found in the website | The status is Unsent - doubt of sending and the service found no document for it. | Fix invoice. |
| The Unsent invoice found in website | The status in the file is Unsent and the service found its document. | Fix invoice if the document has an electronic number. |
| A difference is found in status | The invoice status in the file differs from the document status at the website, and neither is Unsent or Unsent - doubt of sending. | No fix command. Use Update Status in the Tax Invoices and Receipts List. |
| The invoice is not found in the website | The status in the file is not Unsent and the service found no document for it. | No fix command. |
| The invoice is not found in the file | The service returned a document that matches no invoice among those the program read. | Open Invoice from Website only. There is no invoice to display. |
An Unsent invoice with no document at the website is not a difference and does not appear. Neither does an invoice whose status matches.
Right-click menu
Right-click a row. The menu starts with the commands shared by all lists. See Lists and trees. Then these commands.
| Command | When it appears | What it does |
|---|---|---|
| Display Bill | The row has an invoice in the file. | Opens the invoice in its window. If it cannot find it, the program shows "Bill not found" and its identifier. |
| Open Invoice from Website | The document has an electronic number. | Opens the document page at the Authority in the browser. It does not appear for a "sent out multiple times" row, whose documents are in their own window. |
| Show duplicated invoices... | The error is "The invoice has been sent out multiple times". | Opens the Duplicate sent invoices window. |
| Fix invoice | The first three errors of the table of kinds, under the conditions listed there. | Changes the invoice status in the file. See Fix invoice. |
The window defines no double-click command.
Fix invoice
The command runs as soon as you choose it. There is no confirmation question and the window cannot undo it. The program writes what the row held at the last Validate, not what the invoice holds now. If time has passed since the validation, or another user changed the invoice, click Validate again before you fix.
| Error | What the program writes in the invoice |
|---|---|
| The invoice under doubt of sending found in the website | The status becomes the document status at the website, and the electronic number becomes the document number. |
| The invoice under doubt of sending is not found in the website | The status goes back to Unsent and the electronic number is cleared. The invoice can be sent again. |
| The Unsent invoice found in website | The status becomes the document status at the website, the electronic number becomes the document number, and the sending time of the invoice becomes the time the Authority received the document. |
After writing, the program shows "Operation successfully completed" and the row appears in a prominent style with an empty The Error column. Then it looks at the new status:
| New status | Effect on the accounts |
|---|---|
| Invalid or Canceled | If the invoice is posted, the program unposts it and deletes its entry. While the status stays like this, posting it and generating its entry are not carried out, and an error is written to the error log. |
| Rejected | The program unposts the invoice and deletes its entry. It does not block posting it again. |
| Any other status | Posting and the entry do not change. |
This command does not post an invoice again or generate an entry for it, even if its status becomes valid. And once an invoice has a status other than Unsent, it becomes read-only in its window. See What becomes read-only after sending.
Duplicate sent invoices
This window shows all the documents at the website that carry the internal number of one invoice. It opens from the command Show duplicated invoices... and its title is Duplicate sent invoices. It is read-only.
| Column | What it shows |
|---|---|
| Invoice ID | The electronic number of the document. |
| Invoice Status | The document status at the website. |
| Sender | The name of the party that issued the document. |
| Recipient | The name of the party it was addressed to. |
| Amount | The total of the document. |
| Date | The issue date of the document. |
| (UTC) Received Time | The date and time the Authority received the document. |
| Button | What it does |
|---|---|
| Close | Closes the window and returns you to the validation. |
Right-click menu of the duplicates
| Command | What it does |
|---|---|
| Open Invoice from Website | Opens the page of the selected document at the Authority in the browser. |
Neither this window nor Validate has a command that cancels or merges duplicate documents, and the program changes nothing in the invoice because of them. Open each document at the website and read its status.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Validating invoice from Website, with "Please note ... last 90 days" | You clicked Validate. | Click OK. Invoices older than 90 days are not compared with the file. |
| Failed to prompt service, with a reason | Connecting or signing in to the service failed. | See the table of reasons in Send invoices. |
| The operation has been stopped | You clicked cancel in the progress window while the documents were being read. | Click Validate again when needed. Nothing changed in the file. |
| Operation successfully completed | Fix invoice finished. | Check the row in the list. |
| Bill not found: and an identifier | The command Display Bill and the program did not find the invoice. | Validate again. The invoice may have been deleted. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.