Saudi E-invoice Details
This page covers the small windows that a sales invoice or a sales return invoice opens in alameen ERP 10 when the Saudi e-invoicing system is enabled in the file. Some of them take extra data. Others show what was sent to the authority and what it answered. For the steps, see Fill e-invoice details of a bill. The commands of the Taxes menu itself, such as prepare and send, are explained in Send invoices to the authority.
Opening the windows
None of these windows has a ribbon command. They open from a sales or sales return invoice, from the note window, or from another of these windows. Three things control which commands you see: the state of the system in the file, the invoice form, and the state of the invoice itself.
When the commands appear
| Condition | Result |
|---|---|
| Saudi e-invoicing in the file | Your licence must include the Saudi e-invoicing system, the system must be enabled in the file, and the invoice form must be a sales form that generates an entry (not a price offer) or a sales return form. Otherwise the invoice shows no Saudi commands. See Activate e-invoicing in Saudi Arabia. |
| Phase two not enabled or not ready | You see the check commands, Search by Sequential Number and the edit of additional information. You do not see Search by counter number or the advance payment commands. Show invoice details follows the status of the invoice, not the readiness of phase two (see How each window opens). |
| Phase two ready for use | The counter, submission details and advance payment commands are added. See Enable phase two of e-invoicing. |
| Sending computer | Mark Invoice as Advance Payment, Mark Invoice as Final Invoice and Add Invoice as Final Invoice appear only when this computer and its solution unit are set for real sending, not for the compliance check. Add Invoice as Final Invoice appears in sales forms only, whatever the status of the open invoice. Neither final invoice command appears in sales return forms. |
| Tax invoice or simplified invoice | The type does not change the fields of these windows. It changes the status names: Ready for reporting and Reported for a simplified tax invoice, Ready for clearance and Cleared by the authority for a tax invoice. The type shows in the Invoice Type card of the invoice window. An advance payment and a final invoice need a tax invoice: while sending, the program refuses a simplified invoice, after you picked the payments, with the message in Messages. |
| Option in the invoice form | The option Export invoice as Advance Payment is listed for every form when phase two is enabled, but it can be ticked only in sales forms, and it works only when the program option Enable Advance Payments is also on. An invoice of that form is marked as an advance payment instead of being sent the usual way, and so is a new invoice of that form that is sent when you save it. It is not offered the final invoice command. See Invoice forms: tax pages. |
How each window opens
| Window | How to open it | Extra conditions |
|---|---|---|
| Modify invoice additional info | In a saved invoice, click Taxes, then Modify Additional Information.... | The option Allow modifying the additional information of approved invoices is on in the program options, you have the permission Modify Additional Information of Approved Invoices, and the invoice is approved, ready to send, sent, or in Clearance - Error. |
| Advance Payments (edit) | In a saved invoice that is not prepared yet, click Taxes, then Mark Invoice as Final Invoice. For a new invoice, click Taxes, then Add Invoice as Final Invoice. | The option Enable Advance Payments is on, you have the permission Mark Invoice as Final Invoice, and the form is not an advance payment form. The saved invoice is Not prepared, Draft, Posted draft or Approved (after its approval steps). For a new invoice, see the paragraph after the table. |
| Advance Payments (view only) | Click Taxes, then Show Linked Advance Payments. | The invoice is marked as a final invoice. |
| Invoice Info | Click Taxes, then Show invoice details. In the note window: Tax Operations, then Show note details. | The invoice has one submission record. The command appears only for these statuses: Ready for clearance, Ready for reporting (also for other), Cleared by the authority, Reported, the statuses with a warning, an error or a doubt, and the two compliance statuses. It does not appear for Approved, Pending, drafts and Not prepared. In the note window the computer must also be set for real sending. |
| Submission Records | The same command. | The invoice has more than one submission record. |
| Search for Sequential Number | Click Taxes, then Search by Sequential Number. In the note window: Tax Operations. | No extra condition. |
| Search for Counters | Click Taxes, then Search by counter number. In the note window: Tax Operations. | Phase two is ready. |
When you click Add Invoice as Final Invoice, the result depends on the option Do not add invoice in case the preparing or sending it failed. If it is on, the payments window opens during saving, and if you cancel it nothing is saved. If it is off, the invoice is saved first and then the window opens. If you cancel it, the invoice stays saved, not linked to payments and not sent.
Modify invoice additional info
This window, opened by Modify Additional Information..., edits identifying data of an invoice after it is approved, without touching its lines or amounts. The side list holds the General page, and a Custom Fields page when your licence includes custom fields.
| Button | What it does |
|---|---|
| Ok | Saves the General page first, then checks and saves the custom fields. If a custom field has an error, the window stays open and the values of the General page are already saved; the program then does not write the operation to the invoice log or reload the invoice. When everything succeeds, it writes the operation to the log and reloads the invoice. |
| Cancel | Closes the window without saving what is not saved yet. It does not undo what Ok already saved. If you changed something and the warning option On cancel is on, the program asks before discarding. |
General page
The group More fields holds the four text fields.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Notes | The invoice notes. | No | Text up to 1000 characters. If you change it, the program also updates the notes of the entry linked to the invoice. |
| Salesman | The salesman recorded on the invoice. | No | Pick from the list. It and the distributor are hidden when the invoice form has no salesman and distributor fields. |
| Distributor | The distributor recorded on the invoice. | No | Pick from the list. |
| Field 1 to Field 3 | Free text fields. | No | Drop-down lists that suggest values you entered before. Text up to 250 characters. They show the names set in Rename program terms and field names. |
| Purchase order number | The fourth text field. | No | It shows under this name instead of Field 4. Text up to 250 characters. |
When the Custom Fields page is present, the program checks its fields after it saves the General page. If it finds an error the window stays open, and the values of the General page stay saved.
Advance Payments
This window links a final invoice to the advance payments issued before it. It opens in two modes. Edit mode opens when you mark the invoice as a final invoice, and you add and delete payments in it. View mode opens from Show Linked Advance Payments and shows only the linked payments.
Grid columns
| Column | What it shows |
|---|---|
| Bill | The form name and number of the payment invoice. Empty for a manual payment. |
| Net invoice value | The payment invoice value after discount and extra, with tax, in the payment currency. |
| Tax | The tax of the payment. |
| Serial Number | The serial number of the payment. |
| Currency | The currency code of the payment. |
| Date | The issue date of the payment. |
| Payment Type | Empty for a payment of the current year, Previous Year for a payment from an earlier file, and Manual for a payment you typed. |
Right-click a payment of the current year to find the command Display Bill.... Double-clicking it opens the payment invoice. This works in edit mode and in view mode.
Buttons
| Button | What it does |
|---|---|
| Add Payment | Shows the add menu. |
| Delete | Removes the selected row from the list without asking. It does not touch the payment invoice. |
| OK | Checks the whole list by the rules, then hands it back to the command that opened the window, which links it to the final invoice and sends it. |
| Close | Closes the window without linking. It becomes Cancel after any add or delete, and the program asks before discarding if the warning option On cancel is on. |
In view mode the buttons OK, Add Payment and Delete disappear and Close stays. Two cards titled Net invoice value and Tax appear under the grid with the total of the payment values and the total of their taxes.
Checks on OK
The program stops at the first error. It starts with the list: if it is empty, a message appears. Then it checks each payment in this order and adds the Bill cell of the offending payment to the message (nothing for a manual payment):
- The currency or exchange rate of the payment differs from the invoice (manual payments are exempt).
- The value or the tax is zero or less.
- The tax is not 15% of the value after deducting the tax, with an allowed difference of
0.01. - The serial number is empty or repeated in the list.
- The payment date is after the invoice date.
Last: the total of the values is more than the invoice total.
An accepted payment, for example: value 1150.00 and tax 150.00, because (1150.00 - 150.00) × 15% = 150.00. With value 1000.00 and tax 150.00 the message about the unacceptable amount appears.
Add menu
It appears when you click Add Payment:
| Item | What it does | When it appears |
|---|---|---|
| from current year | Opens a search window titled Advance Payments that lists advance payment invoices not yet linked to a final invoice. You can select more than one. The search covers the bill, its net value, tax, serial number, currency and date. If there is no available payment, the window does not open. The program takes the value, tax, currency and date from the payment invoice. See Lookup boxes, edit boxes and search windows. | Always. |
| from previous year | Searches the same way in an earlier-year file linked to your file. If there is one such file, the program uses the file stored as the returns file without asking. Otherwise the file selection window opens. When the invoice is sent, the program looks for a payment picked from an earlier file in the current file, so the message "No advance payment found" appears. For such a payment use Manual, if it is on. | An earlier-year file is linked, used for returns and online on the server. See Link previous years files. |
| Manual | Opens the Link Payments Manually window for a payment issued outside the program. | The option Add advance payments manually is on in the program options. |
If one of the selected payments is already in the list, the duplicate message appears and the program adds none of the selected payments.
Select Previous Year File
It appears when more than one earlier-year file is linked.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Previous File | The file in which you look for payments. | Yes | The program selects the first file in the list. |
| Button | What it does |
|---|---|
| OK | Takes the selected file and opens the search window. |
| Cancel | Cancels the addition. |
Link Payments Manually
The program does not check the fields on OK. It adds the payment as typed. The checks then apply when you click OK in the Advance Payments window. The currency and exchange rate of the payment come from the final invoice.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Bill Number | The serial number of the payment. | Yes | Text up to 100 characters. Not repeated in the list. |
| Net | The value of the payment. | Yes | More than zero. It must satisfy: tax = (value - tax) × 15%, which means the value includes the tax. Example: 1150.00. |
| Tax | The tax of the payment. | Yes | More than zero. Example: 150.00. |
| Date | The issue date of the payment. | Yes | Not later than the invoice date. |
| Button | What it does |
|---|---|
| OK | Adds the payment to the list. Payment Type shows Manual. If its number is already there, the duplicate message appears and it is not added. |
| Close | Closes the window without adding. |
Invoice Info
Invoice Info shows the data of one submission record of the invoice. Every field is read-only, and the only button is Close.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Solution Unit | The solution unit that sent the invoice. | No | If the record is not tied to a solution unit, the device name shows. |
| Device | The device identifier. | No | |
| Signed by | The user who signed the invoice when it was prepared for sending. | No | Empty if it was not prepared. |
| Signature Time | The time of preparing for sending. | No | Empty as above. |
| Sent by | The user who sent the invoice. | No | Empty if it was not sent. |
| Invoice Sent Time | The time of sending. | No | Empty as above. |
| Counter Number | The counter of the invoice. | No | Shown if it is more than zero. |
| Server Type | The service the invoice was sent to. | No | One of three: Developer Portal (SANDBOX), Test (True TIN + Configure solution units on portal), or Actual. |
| Service URL | The address of the service used. | No | |
| Commercial Register Code | The commercial register code used. | No | |
| Commercial Register No. | The commercial register number used. | No | |
| Related to solution unit | A phrase at the top of the window when the record is tied to a solution unit. | No | Hidden if the record is not tied to a unit. |
Submission Records
This window replaces Invoice Info when the invoice has more than one submission record. That usually happens after an invoice is rejected and sent again: the invoice keeps a record for every attempt, so you see the rejected attempts and then the successful one. The grid is sorted by counter number, ascending.
| Column | What it shows |
|---|---|
| Counter Number | The counter of the attempt. |
| Sent by | The user who prepared the attempt for sending. |
| Submission Time | The time of preparing for sending. |
| Device | The device identifier. |
| Solution Unit | The solution unit or the device name. |
| Status | Succeeded or Rejected. |
The only button is Close. The general behaviour of the grid is in Lists and trees.
Row menu
Right-click a row to add these items to the general menu:
| Item | What it does |
|---|---|
| Display Show invoice details | Opens Invoice Info for this attempt. |
| Display Show error / warning details | Opens the response window with the text of the service answer to this attempt. It opens nothing if no answer was stored for the attempt. See Tax small dialogs and shared menus. |
Search for Sequential Number
This window opens an invoice or a note by its sequential number. The UAE e-invoice opens a similar window (see UAE: Search for Sequential Number). It does not find drafts, unprepared invoices, compliance invoices or invoices outside the system.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| By invoice sequential number code | Searches by the code part and the numeric part together. | No | One of two options. Selected when you open the window from an invoice that has a sequential code. |
| Code | The code of the numbering range. | No | The program fills it with the code of the invoice you opened it from. If you leave it empty, the search uses the numeric part alone. |
| Numeric part | The number inside the range. | No | The program fills it with the number before the number of the invoice you opened it from. If you leave it empty or type 0 or *, the tax invoices list opens instead of one invoice. |
| Defined sequential number | You type the whole sequential number. | Yes with the second option | Selected in the other cases. The program fills it with the number before the number of the invoice you opened it from, when that invoice has a number and no code. If you leave the field empty, the tax invoices list opens. |
| Button | What it does |
|---|---|
| Ok | Opens the invoice or note it finds, and leaves the search box open so you can look for another, with Defined sequential number cleared. If it opens the list, it closes the box. |
| Close | Closes the window. |
The tax invoices list is explained in Tax Invoices List.
Search for Counters
This window opens an invoice or a note by its counter number in a solution unit.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Solution Unit | The solution unit or device that issued the counter. | Yes | Lists the solution units, and the devices without a unit, that already have submitted documents or documents prepared for sending. If you opened the window from a sent invoice, it is filled with its unit. |
| Counter Number | The requested number. | No | Filled with the counter before the counter of the invoice you opened it from. If you leave it empty or type 0 or *, the tax invoices list of the unit opens. |
| Button | What it does |
|---|---|
| Ok | Opens the invoice or note with this counter in the selected unit, and leaves the search box open. If it opens the list, it closes the box. |
| Close | Closes the window. |
What becomes read-only after sending
When you open a saved invoice, the program locks the Modify and Delete buttons of the invoice window by its status:
| Status | Modify | Delete |
|---|---|---|
| Approved (phase one), Ready for clearance, Ready for reporting, Ready for reporting - For other | Disabled | Disabled |
| Cleared by the authority, Reported | Disabled | Disabled |
| Cleared - Warning, Reporting - Warning, Reporting - Doubt, Reporting - Error, Pending | Disabled | Disabled |
| Clearance - Error | Enabled | Disabled |
| Compliant | Disabled | Enabled |
| Compliant - For other | Disabled | Disabled unless you have the permission Allow deletion of compliant invoices from another solution unit |
| Draft from another file | Disabled | Disabled |
In the status Posted draft, Modify stays enabled, but the program refuses the change with a message: cancel the posting of the draft first. If the status changed from outside the window, Modify and Delete stop with a message and the program refreshes the window. The status Approved after approval steps (in Arabic, تم المصادقة) has the same English name as the phase-one status. It is not in this table: this rule does not lock it, and Modify Additional Information is not open to it.
What stays available for an approved invoice is editing the additional information, and the command Modify Reported /Approved Invoice... in the Taxes menu, which needs the option Allow modifying reported / approved invoices in the file and a permission. The windows Invoice Info, Submission Records and Advance Payments in view mode accept no edit.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Link Advance Payments: No advance payments are linked to the final invoice | You clicked OK in Advance Payments with an empty list. | Add at least one payment. |
| Link Advance Payments: The advance payment currency differs from the final invoice currency., then the payment name | The currency or exchange rate of the payment differs from the invoice. It can also appear during the link itself. | Pick a payment in the invoice currency. |
| Link Advance Payments: The net amount or tax amount of the advance payment is not acceptable, then the payment name | The value or the tax is zero or less, or the tax is not 15% of the value after deducting it. | Correct the values, or delete the payment and add it again. |
| Link Advance Payments: The advance payment serial number is invalid or duplicated., then the payment name | The serial number is empty or repeated in the list, or a payment of any other final invoice already uses it. It can also appear during the link itself. | Type a number that is not repeated. |
| Link Advance Payments: The advance payment issue date is later than the final invoice issue date, then the payment name | The payment date is after the invoice date. It can also appear during the link itself. | Pick an earlier payment or correct the date. |
| Link Advance Payments: Total advance payments exceed the net amount of the final invoice | The total of the values is more than the invoice total. | Delete a payment or pick payments of lower value. |
| Duplicate Invoice | The serial number of one of the selected payments is already in the list. | Delete the existing payment or do not select it. |
| Can not OpenDataBase connection | The earlier-year file could not be opened after you picked payments from it. The message is in English in every language. | Check the link to the earlier-year file and your connection to the server, then try again. |
| Link Advance Payments: Invalid Final Invoice | It appears during the link when the saved invoice is no longer a final invoice. | Reopen the invoice and repeat the operation. |
| Link Advance Payments: No advance payment found | It appears during the link when the payment invoice is not found. It also appears for a payment picked from an earlier-year file, because the search runs in the current file. | Pick the payment again, or enter the earlier-year payment with Manual. |
| Link Advance Payments: The advance payment cannot be linked to a final invoice due to its type. | It appears during the link when the payment is no longer an open advance payment (it is linked or cancelled). | Pick an open advance payment invoice. |
| Link Advance Payments: The advance payment has already been linked to a final invoice. | It appears during the link when the payment is linked to another final invoice. | Pick an unlinked payment. |
| Link Advance Payments: An error occurred while updating the advance payment properties. Please try again. | It appears during the link when the payment could not be updated. | Try again. |
| Link Advance Payments: An error occurred while linking the advance payment. Please try again. | The link fails for another reason. | Try again. |
| Empty solution unit: Please select solution unit. | You clicked Ok in the counter search without a solution unit. | Pick a unit. |
| Invoice not found: Sorry! either the invoice not found or you have no permission | No invoice has the requested number, or you have no permission to open it. The program beeps. | Check the number and your permissions. |
| Are you sure you want to mark the invoice as a final invoice? | You clicked Mark Invoice as Final Invoice or Add Invoice as Final Invoice. It has the buttons OK and Cancel. | Confirm to open the payments window. After you confirm, the program checks the invoice before the window opens, and one of the next two checks can stop it. |
| Invoice changes: The invoice has changed, if you continue, the changes will be ignored. Are you sure you want to continue? | You clicked Mark Invoice as Final Invoice in a saved invoice that has unsaved changes. | OK reloads the invoice, ignores your changes and goes on. Cancel stops the operation. |
| Assign invoice serial number: There are unprepared invoices prior to the current invoice. If continue, the current invoice will be assigned a serial number smaller than those invoices'serial numbers when they prepared. Do you want to continue? | You clicked Mark Invoice as Final Invoice and there are earlier invoices that are not prepared or are drafts. | Yes goes on. No stops the operation. |
| Unable to process because this is a simplified invoice. | The invoice is simplified and you mark it as an advance payment or a final invoice. The title is the name of that command, and the message appears after the payments were picked, when the invoice is sent. | Use a tax invoice. |
| Unable to process because the invoice is marked as "Advance Payment". | An invoice of an advance payment form was sent through another path as a final invoice. | Mark it as an advance payment. |
| Unable to retrieve the invoice. Please try again. | The program could not read the invoice while sending it as an advance payment or a final invoice. | Try again. |
| Posted draft: Cannot modify the draft because it is posted, you should cancel draft posting to be able to modify. | You clicked Modify in an invoice in the status Posted draft. | Cancel the posting of the draft, then modify it. |
| Unable to continue due to invoice status: The invoice status has changed, the status will be updated. Please redo operation if it is allowed. | The status of the invoice changed after you opened it and you clicked Modify or Delete. | Repeat the operation if the new status allows it. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.