Skip to main content

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​

ConditionResult
Saudi e-invoicing in the fileYour 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 readyYou 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 useThe counter, submission details and advance payment commands are added. See Enable phase two of e-invoicing.
Sending computerMark 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 invoiceThe 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 formThe 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​

WindowHow to open itExtra conditions
Modify invoice additional infoIn 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 InfoClick 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 RecordsThe same command.The invoice has more than one submission record.
Search for Sequential NumberClick Taxes, then Search by Sequential Number. In the note window: Tax Operations.No extra condition.
Search for CountersClick 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.

ButtonWhat it does
OkSaves 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.
CancelCloses 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.

FieldDescriptionRequiredValues and rules
NotesThe invoice notes.NoText up to 1000 characters. If you change it, the program also updates the notes of the entry linked to the invoice.
SalesmanThe salesman recorded on the invoice.NoPick from the list. It and the distributor are hidden when the invoice form has no salesman and distributor fields.
DistributorThe distributor recorded on the invoice.NoPick from the list.
Field 1 to Field 3Free text fields.NoDrop-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 numberThe fourth text field.NoIt 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​

ColumnWhat it shows
BillThe form name and number of the payment invoice. Empty for a manual payment.
Net invoice valueThe payment invoice value after discount and extra, with tax, in the payment currency.
TaxThe tax of the payment.
Serial NumberThe serial number of the payment.
CurrencyThe currency code of the payment.
DateThe issue date of the payment.
Payment TypeEmpty 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​

ButtonWhat it does
Add PaymentShows the add menu.
DeleteRemoves the selected row from the list without asking. It does not touch the payment invoice.
OKChecks 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.
CloseCloses 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):

  1. The currency or exchange rate of the payment differs from the invoice (manual payments are exempt).
  2. The value or the tax is zero or less.
  3. The tax is not 15% of the value after deducting the tax, with an allowed difference of 0.01.
  4. The serial number is empty or repeated in the list.
  5. 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:

ItemWhat it doesWhen it appears
from current yearOpens 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 yearSearches 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.
ManualOpens 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.

FieldDescriptionRequiredValues and rules
Previous FileThe file in which you look for payments.YesThe program selects the first file in the list.
ButtonWhat it does
OKTakes the selected file and opens the search window.
CancelCancels 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.

FieldDescriptionRequiredValues and rules
Bill NumberThe serial number of the payment.YesText up to 100 characters. Not repeated in the list.
NetThe value of the payment.YesMore than zero. It must satisfy: tax = (value - tax) × 15%, which means the value includes the tax. Example: 1150.00.
TaxThe tax of the payment.YesMore than zero. Example: 150.00.
DateThe issue date of the payment.YesNot later than the invoice date.
ButtonWhat it does
OKAdds the payment to the list. Payment Type shows Manual. If its number is already there, the duplicate message appears and it is not added.
CloseCloses 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.

FieldDescriptionRequiredValues and rules
Solution UnitThe solution unit that sent the invoice.NoIf the record is not tied to a solution unit, the device name shows.
DeviceThe device identifier.No
Signed byThe user who signed the invoice when it was prepared for sending.NoEmpty if it was not prepared.
Signature TimeThe time of preparing for sending.NoEmpty as above.
Sent byThe user who sent the invoice.NoEmpty if it was not sent.
Invoice Sent TimeThe time of sending.NoEmpty as above.
Counter NumberThe counter of the invoice.NoShown if it is more than zero.
Server TypeThe service the invoice was sent to.NoOne of three: Developer Portal (SANDBOX), Test (True TIN + Configure solution units on portal), or Actual.
Service URLThe address of the service used.No
Commercial Register CodeThe commercial register code used.No
Commercial Register No.The commercial register number used.No
Related to solution unitA phrase at the top of the window when the record is tied to a solution unit.NoHidden 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.

ColumnWhat it shows
Counter NumberThe counter of the attempt.
Sent byThe user who prepared the attempt for sending.
Submission TimeThe time of preparing for sending.
DeviceThe device identifier.
Solution UnitThe solution unit or the device name.
StatusSucceeded 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:

ItemWhat it does
Display Show invoice detailsOpens Invoice Info for this attempt.
Display Show error / warning detailsOpens 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.

FieldDescriptionRequiredValues and rules
By invoice sequential number codeSearches by the code part and the numeric part together.NoOne of two options. Selected when you open the window from an invoice that has a sequential code.
CodeThe code of the numbering range.NoThe 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 partThe number inside the range.NoThe 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 numberYou type the whole sequential number.Yes with the second optionSelected 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.
ButtonWhat it does
OkOpens 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.
CloseCloses 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.

FieldDescriptionRequiredValues and rules
Solution UnitThe solution unit or device that issued the counter.YesLists 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 NumberThe requested number.NoFilled 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.
ButtonWhat it does
OkOpens 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.
CloseCloses 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:

StatusModifyDelete
Approved (phase one), Ready for clearance, Ready for reporting, Ready for reporting - For otherDisabledDisabled
Cleared by the authority, ReportedDisabledDisabled
Cleared - Warning, Reporting - Warning, Reporting - Doubt, Reporting - Error, PendingDisabledDisabled
Clearance - ErrorEnabledDisabled
CompliantDisabledEnabled
Compliant - For otherDisabledDisabled unless you have the permission Allow deletion of compliant invoices from another solution unit
Draft from another fileDisabledDisabled

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​

MessageWhy it appearsWhat to do
Link Advance Payments: No advance payments are linked to the final invoiceYou 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 nameThe 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 nameThe 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 nameThe 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 nameThe 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 invoiceThe total of the values is more than the invoice total.Delete a payment or pick payments of lower value.
Duplicate InvoiceThe 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 connectionThe 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 InvoiceIt 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 foundIt 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 permissionNo 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.

This page applies to alameen ERP 10, version 10.1.79.764.