Skip to main content

Send invoices to the authority

In alameen ERP 10 you prepare Saudi sales invoices and send them to the authority in one pass from the Tax Invoices List. You choose the invoices with the filters of the list, run a command from the Operations button, then read the result of each invoice.

Before you begin​

  • The Saudi e-invoicing system is enabled in the file and you have the permission Tax Invoices List. See Activate e-invoicing in Saudi Arabia.
  • To send invoices for real, phase two must be enabled and ready, and this computer and its work unit must be set for real sending. On a computer in the compliance-check phase, or one that still needs its certificate file installed, the sending commands do not appear in Operations. See Enable phase two of e-invoicing.
  • Each command has a permission on the Operations page of Users Management (group KSA E-invoice): Prepare invoice for reporting, Reporting Invoice and Invoice Clearance. In phase one: Prepare Invoice and Approve Invoice. A simplified invoice in Clearance / Reporting Invoices needs Prepare invoice for reporting too.
  • The internet connection works. The sending commands check it before they process any invoice; Prepare invoices to report and the phase-one commands do not.
  • The invoice date is today. Otherwise the invoice does not pass the prepare check, unless the option Enable supply date by using invoice date is on, the customer is not of the personal type and the date is within the allowed period. For a not prepared invoice with an old date use Update date of invoices.
  • The invoices are complete. Check them before sending with the Invoices Verification button.

Choose the right command​

In phase two, when ready:

Invoice statusWhat you wantCommand
Not prepared, Approved (workflow), Draft or Posted draftSend nowClearance / Reporting Invoices: a simplified invoice is reported, a normal one is sent for clearance.
Not prepared, Draft or Posted draftPrepare the simplified invoice now and report it laterPrepare invoices to report, then Reporting Invoices. The first one appears only with the option Delay reporting of simplified invoices and their associated notes (within 24 hours).
Ready for reportingReport itReporting Invoices.
Reporting - Error or Clearance - ErrorSend again after fixingResend invoices. See Resend and repair failed invoices.
Reporting - DoubtMake sure it arrivedThe command Fix invoice of the invoice itself (Resend and repair failed invoices).
Not prepared and dated before todayMake its date todayUpdate date of invoices, then one of the sending commands.

Credit and debit notes are reported from the list with Reporting Invoices when they are Ready for reporting, and you need the permission Reporting Notes. If the sending of a note fails, its row shows Succeeded - No change and the note stays Ready for reporting; read the error window that appears. Preparing them and their other operations are done in the note window (Credit and debit note).

Steps​

  1. Open Systems > KSA Taxes > E-invoice > Tax Invoices List.
  2. Set the period in From and To. Leave ticked in Status the statuses you want to process, such as Not prepared or Ready for reporting, and clear the others. Click Refresh. The invoices appear with a check box at the start of each row, all ticked.
  3. Clear the invoices you do not want to process. The program processes only the ticked rows.
  4. Click Invoices Verification. The program shows a summary box and adds the column Operation Status. Fix the rows that show Invalid invoice in the invoice window: the command Validate E-invoice Requirements in its Taxes menu tells you the reason. Then click Refresh.
  5. Click Operations and choose the command from the table above. If the command is not there, see the conditions in Commands of the Operations button.
  1. A confirmation box appears with Ok and Cancel. Click Ok. For a sending command the program checks the internet connection first. If it fails, the message "Failed to prompt service" appears and nothing changes.
  2. A message titled "Invoices Ready for Reporting" may appear: it means there are ready invoices that were not reported and exceeded the warning or prevention hours. Follow the Invoices Reporting Options window: it opens after you click Yes, and it reports the ready invoices before your command continues. The count also includes Reporting - Error invoices older than the limit. The window does not report them: resend them with Resend invoices, otherwise the question keeps blocking. If the window reported invoices that are also ticked in the list, their rows show "Error in reporting invoice"; click Refresh to see their real status. The same question appears when you open a sales invoice window of a Saudi e-invoice form.
  3. Wait for the progress box, which shows the number of the current invoice. Then the box Operation successfully completed shows the number of invoices and the count of each result. Click Ok.
  4. For each row read the columns Invoice Status and Operation Status. Rows that failed show in the error colour. For the common errors see If something goes wrong.

In phase one​

If phase two is not ready, the commands in Operations are Prepare Invoices for a Not prepared invoice and Approve invoices for a draft. Neither contacts the authority. Steps 1 to 4, 6, 8 and 9 are the same, and in step 5 you choose one of these two commands.

Options that change the sending​

These options are in File > Program Options, page Save, group KSA E-invoicing System (explained here). They appear in phase two only.

OptionIts effect on these operations
Delay reporting of simplified invoices and their associated notes (within 24 hours)The command Prepare invoices to report appears, and a simplified invoice saved with it is not sent at once; it becomes Ready for reporting.
Do not convert invoice status to Ready-to Report in case the reporting of simplified invoice failedIn Clearance / Reporting Invoices: if sending fails, the whole preparation of the invoice is undone and an error shows. If it is off, the invoice stays Ready for reporting and the row shows Succeeded.
Standard invoice clearance if simplified invoice is requestedA normal invoice in Prepare invoices to report is sent for clearance instead of being refused.
Prevent re-sending invoices from other solution unitsIn Resend invoices.
Resend invoice when you get a blank error messageSends the reporting or clearance request up to four times in all if the rejection comes back with no text.
validate real-time (requires internet connection)Checks the time of the server and of the computer before preparing.
Keep the temporary file when processing invoice clearanceKeeps the temporary document that came back from clearance after it is saved in the invoice.

In E-Invoice Settings, page Bills Warnings, you set the warning hours and the prevention hours of the invoices ready for reporting. When a Ready for reporting invoice is as old as (24 hours minus the set hours) or more, the question of step 7 appears, and it may block preparing or sending a new invoice until the late invoice is reported.

Result​

CommandWhat changes in the invoice and its entry
Prepare for reportingA counter number is reserved, the simplified invoice is signed on this computer, and the signature and QR code are kept with it. It becomes Ready for reporting. The program posts it if its form is Auto Posting to Accounts, generates its entry if the form is Generates Entry Automatically, and saves the automatic archive file.
Sending, the authority acceptsThe invoice becomes Reported or Cleared by the authority, or the status with a warning. The answer is kept with the invoice when it carries warnings.
Sending, the authority rejectsThe invoice becomes Reporting - Error or Clearance - Error, and the program unposts the invoice and deletes its entry. Fix the invoice, then use resend: if the resend is accepted, the invoice is posted and its entry generated again according to its form.
Reporting times outThe invoice becomes Reporting - Doubt. Its posting and entry do not change.
The connection or the sending failsNo result is saved and the row shows an error.
Preparing in phase oneThe invoice gets a serial number and a tax type, and becomes Approved.

The program writes an event to the operations log for every invoice whose status changed. With automatic archiving the archive files are generated and appear in Archives.

If something goes wrong​

Message or wordingWhy it appearsWhat to do
Failed to prompt serviceThe internet connection, or the site set for the connection test, does not work.Check the connection and repeat the command. Nothing changed.
The command you want is missing from OperationsNo ticked row has a status the command accepts, you lack the permission, the computer is not set for real sending, or the needed option is off.See the table of commands in Commands of the Operations button.
Invoice status does not allowThe status of the row is not one of the command.Choose the command that fits its status.
Invalid invoiceThe invoice check failed: missing data, a date that is not today, or a different file code.Open the invoice and run Validate E-invoice Requirements to see why.
Error in invoice clearanceThe invoice was not sent in Clearance / Reporting Invoices, for any reason.The invoice goes back to its status before the command. Open the invoice and repeat the sending from its Taxes menu, which shows the reason.
Error in reporting invoiceA Ready for reporting invoice was not reported.It stays as it was. Check the connection and the permission, and repeat.
Succeeded, and the status is Reporting - DoubtThe connection timed out with no answer.Use Fix invoice.
"Invoices Ready for Reporting"Ready invoices exceeded the warning or prevention hours.Click Yes to report them first, from the Invoices Reporting Options window.
"Current terminal settings error" when opening the listThe setup of this computer for e-invoicing is incomplete.Fix it from Work units and terminals.

This page applies to alameen ERP 10, version 10.1.79.764.