Skip to main content

E-Invoice Settings: work units and terminals

This page explains two tabs of E-Invoice Settings in alameen ERP 10, and every window they open. Solution Units registers a work unit that several terminals share. Terminal setup registers the current terminal, which is the computer you work on, either on its own or linked to a unit. Registering asks the authority for a CSID file for the compliance phase, and later for a CSID file for the integration phase. For the steps, see Set up work units and terminals for e-invoicing.

Opening the window​

Click Systems > KSA Taxes > E-invoice > E-Invoice Settings, then choose the tab from the side list. The conditions:

  • The tax country of the file is Saudi Arabia, and the Saudi e-invoice system is activated in it. See Activate e-invoicing in Saudi Arabia.
  • You have the E-Invoice Settings permission in the Users window.
  • The Solution Units and Terminal setup tabs appear after phase two is activated, also while its start date is postponed. See Enable phase two of e-invoicing.
  • Before the window opens, the program closes its open windows and takes the file for exclusive use. The other tabs are in E-Invoice Settings.

The e-invoice administrator password​

Before each operation that changes the registration, the program opens the Enter Password window with a Password field. Enter the password of the e-invoice system administrator and click OK. An empty field gives "Please enter password". A wrong password gives "Incorrect password". If you click Close, the operation does not run. If you do not know the password, ask the person who activated phase two. You can change it on the General Options page.

It is asked by New, Details and Delete on the Solution Units tab, by every button on the Terminal setup tab, by the commands of the Operations menu of a unit, and by Enable / Disable and Remove Settings in the Related Terminals window. The Remove Settings command of the Work Unit and Workstation Details report asks for it too.

Solution Units tab​

The list shows the units that are not removed, in the order they were registered. A disabled unit has a note in brackets after its name. Select a unit to see its information below, read-only.

ButtonWhat it does
NewAsks for the password, then opens the Unit Info window to register a new unit. After registering, the list is refreshed.
DetailsAsks for the password, then opens the selected unit for viewing. Disabled until you select a unit.
DeleteAsks you to confirm. If the unit has at least one terminal record, even a removed one, the program refuses with "The unit is linked to a device / devices, cannot delete". Otherwise it asks for the password, deletes the unit for good and writes the operation to the log. Disabled until you select a unit.
Field (read-only)Description
NameThe unit name.
Serial NumberTwo boxes: the serial number prefix, and the unit number.
Unit ActivityThe activity typed at registration.
Invoices TypeAll, Standard Bills Only or Simplified Bills Only.
Name (Company / Corporate Info)The Latin name of the company at registration.
Tax NumberThe company tax number at registration.
Tax Identification NumberShown when the company belongs to a VAT group. Otherwise the label becomes Branch Name.
CountrySA.
AddressThe registered address.
Commercial RegisterThe code of the commercial register chosen for the unit. Empty if none.

This tab saves nothing when you click OK in the main window. Each operation is written to the file at once.

Unit Info​

New or Details opens it. With New you register a unit. With Details you view a registered one.

FieldDescriptionRequiredValues and rules
NameA new unit has two boxes: a prefix the program fills (the letter u, then the file code and year code if they exist), and a box where you type the rest. A registered unit has one read-only box.YesThe character - is not accepted. The name must not repeat among unit names or terminal names.
OTPA one-time password created on the authority's e-invoice portal. Each code identifies one unit or one device.YesExactly six digits, such as 123456. Locked after registration.
Serial NumberA read-only box with a code the program builds from the product name, the unit kind, the file and year codes and a random number, and next to it the unit number. The program proposes one more than the highest number used by terminals.YesThe number must not repeat with the same prefix on another unit or terminal.
Unit ActivityThe unit activity. The first value comes from the company activity in the tax settings.YesUp to 20 characters.
Invoices TypeThe invoice type that the CSID file is issued for.NoAll, Standard Bills Only or Simplified Bills Only.
Commercial RegisterList of the defined commercial register codes, with an empty item.NoEditable before registration only.
Name (Company / Corporate Info)The Latin company name from the tax settings.Filled by the programRead-only.
Tax NumberThe VAT tax number.Filled by the programRead-only.
Tax Identification Number / Branch NameThe first when the company number belongs to a VAT group, the second otherwise.YesUp to 20 characters. The tax identification number is read-only. Branch Name can be edited at registration.
CountrySA.Filled by the programRead-only.
AddressThe short address with the building number if defined, otherwise the city.YesEditable at registration only.
Service type boxThe service chosen on the service tab of the e-invoice settings: Developer Portal (SANDBOX), Test (True TIN + Configure solution units on portal) or Actual.Filled by the programRead-only.
Service address boxThe service address from the same settings.Filled by the programRead-only.
ButtonWhat it does
OKChecks the fields and registers the unit (details below). Hidden after registration.
CloseCloses the window. If you changed something, the program asks before closing.
OperationsThe commands of a registered unit. Shown only if the unit has at least one terminal record, even a removed one.
HelpOpens the CSID Files Help.

A registered unit shows a colored box with its state: Active in green, or Inactive in gray.

What happens on OK​

  1. The program checks that you chose the service type in the e-invoice settings. If not, it shows "No server set yet, please select the server you want to connect to from E-invoice settings."
  2. It checks the name, code, serial number, activity, branch name and address. Then it checks in the file that the name and serial number are not used by another unit or terminal. If the number is taken, the message gives the last reserved number.
  3. A progress window shows "Preparing data" and "Downloading the CSID file from the portal".
  4. The program registers the unit as Active in the Compliance phase, and asks the authority for the compliance CSID file by sending the OTP. First it compares the Latin name and the tax number (and the tax identification number for a VAT group) with the company settings.
  5. If any part fails, including a refusal from the authority, the unit is not saved and the reason is shown. See Messages.
  6. If it succeeds, the log gets "Add Unit" and the unit name, and the window closes.

The Operations menu of a unit​

CommandWhat it does
Disable or ActivateThe label follows the state. The question is "Deactivating solution unit will result in all related devices to be revoked and they would not be able to issue e-invoices. Do you want to continue?" or "Are you sure you want to enable the solution unit". Then the password. The state changes in the colored box.
Remove unit settingsA warning question, then the password, then a check of the invoices. If invoices with status Ready for Reporting or Ready for Clearance belong to the unit, the program shows "Unable to cancel settings, there are ready-to-report invoices that must be processed first." Otherwise the unit and all its terminals that are not removed are removed, and "The unit has been revoked, the window will be closed." appears.
Show DetailsOpens Settings Details for the unit.
Related TerminalsOpens Related Terminals. Shown only if the unit has a terminal that is not removed.
Unit ReconfigurationRegisters a new unit that replaces this one. Shown only if the unit has a terminal that is not removed. Details follow the table.

The check covers invoices only. It does not check credit or debit notes.

Unit Reconfiguration is a dangerous operation. After the question and the password, the window closes and a new unit window opens with empty fields and the usual prefix. On OK the name and serial number must differ from the old unit, because it is still registered. Then the program asks again, checks the ready invoices as above, removes the old unit, puts its terminals in the status while re-configuring unit, registers the new unit and downloads its compliance file. Then it relinks each terminal to the new unit with a new record whose status is need to install the Compliance CSID file on device, and removes the old records. Each terminal must install the file from its Terminal setup tab. The new unit starts its counter at one, because the counter is kept per unit.

The list shows the terminals of the unit that are not removed. A disabled terminal has a note in brackets. The buttons stay disabled until you select a terminal.

ButtonWhat it does
Enable / DisableAsks "Are you sure you want to disable the terminal?" or "Are you sure you want to enable the terminal?", then the password, then flips the state of the terminal.
Remove SettingsAsks "This operation is dangerous, it will delete all settings permanently. Do you want to continue", then the password, then removes the terminal record and refreshes the Terminal setup tab. This button does not check the ready invoices, unlike the remove command of the unit and the Remove Settings button of the Terminal setup tab.
CloseCloses the window.

Settings Details​

It lists the registration records in all their states, removed ones included. It opens from Show Details (for one unit) and from the Details button of the Terminal setup tab (for the current terminal).

For a unit only, the top shows Name, Serial Number (prefix and number together), Last Invoice Counter and Last Invoice Number (the last two appear if the unit has at least one invoice). The terminal version does not show these fields.

ColumnDescription
Solution UnitYes or No: whether the record is a terminal linked to a unit. (Terminal version only.)
Unit Name(Terminal version only.)
SN Code(Terminal version only.)
Serial Number(Terminal version only.)
Unit activationActive or Inactive. (Terminal version only.)
Unit StatusActive, the state the unit is waiting in, or Canceled. (Terminal version only.)
TerminalThe computer name.
Terminal ActivationActive or Inactive.
Terminal StatusOnly Canceled appears. The cell stays empty for the other states.
PhaseConfiguration, Compliance or Integration.
Invoices TypeThe invoice type of the file.
CSID fileThe identifier of the installed compliance file.
Configured byWho registered the terminal.
Configuration TimeThe registration date and time.
Expiry DateThe expiry date of the integration CSID file. Empty until it is installed.

Disabled records use a different font, and removed records use the font of errors. When the window opens, if a record has an installed integration file and no expiry date, the program reads the date from the file and saves it in the file.

CSID Files Help​

A text-only window that Help opens. It explains registration in three parts: introduction, compliance phase, and integration phase. In short:

  • The company first gets a CSID file (a cryptographic stamp identifier) for the compliance phase. The phase ends by sending six invoices and notes: a standard invoice, a simplified invoice, a credit note, a debit note, a simplified credit note and a simplified debit note.
  • In compliance: sign in to the e-invoice portal and create a one-time password for each unit or device. Then define the unit or set up the terminal and enter the password, and the program downloads the compliance file. If you work through a unit, link your device to it so the file is installed on it. Add a standard and a simplified invoice and create the notes from inside them. The program tells you when compliance succeeds.
  • In integration: open the e-invoice settings and click the button that downloads the integration CSID file, which appears by itself after compliance. When you work on a unit, the program asks you to install the file on each linked device.

Terminal setup tab​

It concerns only the computer you work on. The program identifies the terminal by the computer name and takes its latest record that is not removed.

The strips at the top​

Two strips sit above the fields. The first shows the work phase: Configuration in gray if the terminal is not registered, Compliance Phase in yellow, and Integration Phase in green. The second shows the state of the terminal:

What appearsWhen
"Terminal (computer name) Not configured", grayThe terminal is not registered.
"Terminal (computer name) Configured", greenA stand-alone terminal is registered.
"Terminal (computer name) Related to solution unit (unit name)", blueA terminal linked to a unit.
"The device needs to confirm settings"The file was moved to a database or server other than the one the terminal was registered on.
"Failed to download settings"The settings could not be read.
"No server set yet, please select the server..."The service type is not set, or it differs from the registered one.
"The unit needs the Production CSID to be downloaded"The unit finished compliance.
"The device needs to download the Production CSID file from the portal and install it"A stand-alone terminal finished compliance.
"The device needs the Production CSID to be installed"The file is downloaded but not installed on this computer.
"The device needs the compliance CSID to be installed"The compliance file is not installed on this computer.
"Settings transferred"The settings were moved to the next year.
"Compliance CSID file has not been set" / "...not found" and the same for ProductionThe compliance or integration file is not set or not found.
"CSID info error"The CSID file cannot be read.
"The CSID file info doesn't match the company/ corporate info"The file does not agree with the current company settings.

When an error shows, the strip gets a white background and red text, and two buttons appear before it:

ButtonWhat it does
DetailsExplains the error. For "needs to confirm settings" it shows the registered and current server or database name. For a CSID mismatch it shows a comparison of the file values with the saved values or the company data.
FixAsks for the password first. Its caption changes to Download or Install by the error. Details follow.

What the button does by error:

  • Download for a unit or a stand-alone terminal: asks the authority for the integration file using the saved compliance file. On success the unit moves to the integration phase and its terminals wait for installation.
  • Install: installs the saved file on this computer. When an integration file installs successfully, the terminal moves to the integration phase and its expiry date is saved. If the program has no right to install, a message asks you to run it as administrator.
  • For "needs to confirm settings": updates the saved server and database names to the current ones. If this file has no invoices for the terminal and its settings are found in the previous year's file, the program offers to transfer the settings: it keeps the same counter and closes the unit in the old file.
  • Compliance or integration file not set or not found: opens the terminal information window in fix mode.
  • File with wrong data or not matching the company: asks you to remove the settings and enter them again.
  • Failed to download settings: "Please contact your agent to fix the problem."
  • No server set: the same message again. Choose the server on E-Invoice API.
  • Settings transferred: "Unable to work on the solution unit or terminal, it has been transferred to the next year."

Group: Current Terminal Configuring​

ItemDescription
Setup terminal separatelySelected by default. Enables the Terminal setup button.
Related to solution unitEnables the Link to Unit button.
Related to serviceDisabled on this tab.
Terminal setupAsks for the password, then opens Terminal info. For a stand-alone terminal that is already registered it shows its data read-only. Disabled when the terminal is linked to a unit or the strip shows "Failed to download settings".
Link to UnitAsks for the password, then opens Link Terminal to Unit. Works only while the terminal is not registered.

After registration the two options and Link to Unit stop working.

After registration these buttons appear at the bottom:

ButtonWhat it does
Deactivate Terminal / Activate TerminalAsks "Are you sure you want to disable the terminal?" or "...enable the terminal?", then the password, then flips the state and logs it.
Remove SettingsA warning question, then the password, then the check of invoices ready for reporting or clearance, as for a unit. If the check passes, only this terminal is removed.
DetailsOpens Settings Details for the terminal.
Reset Compliance phaseShown only while the unit, or a stand-alone terminal, waits for the integration file. Asks "This action will reset the compliance of the current device / unit...", then the password. Then it clears the record of the six compliance invoices that passed, sets the state back to Active and the phase back to compliance, so you can test the invoice types again.

After OK in the main window the program saves all e-invoice settings. The operations of this tab are written at once.

Terminal info​

It opens from Terminal setup. It resembles the unit window, but it registers the current terminal on its own.

FieldDescriptionRequiredValues and rules
Device NameThe name of this computer.Filled by the programRead-only.
OTPThe one-time password the portal creates for this terminal.YesSix digits.
Serial NumberThe built prefix (terminal kind pc) and the number. The program proposes one more than the highest number used by terminals.YesNot repeated.
Unit NameDespite its label, this is the name of the stand-alone terminal at registration: a prefix the program fills and a box for the rest.Yes- is not accepted. Not repeated.
Unit ActivityThe activity.YesUp to 20 characters.
Invoices TypeStarts as All.NoAs in the unit.
Commercial RegisterA commercial register code.No
Company / Corporate InfoThe name, tax number, tax identification number or branch name, country and address, with the same rules as in the unit window.

Buttons: OK (hidden after registration), Close and Help. On OK the program runs the same checks, registers the terminal in the compliance phase, downloads the compliance file from the authority by sending the OTP, and installs it on this computer. If the download fails, the terminal is not saved. If the download succeeds and the installation fails (for example for lack of rights), the terminal is saved and the Terminal setup tab shows "The device needs the compliance CSID to be installed" with an Install button.

In fix mode, which Fix opens when a CSID file is missing, the text "Related to solution unit" and the unit name appear if the terminal is linked, all fields are read-only, and a Fix button shows. The program checks the fields, then installs the compliance file saved for this terminal.

It opens from Link to Unit.

FieldDescriptionRequired
TerminalThe name of this computer, read-only.Filled by the program
Solution UnitThe units that are not removed. A disabled one has a note in brackets. Nothing is preselected.Yes

If you click OK without a unit, the program shows "Please select solution unit." After you choose, the program registers the terminal under the unit and installs on it the compliance file that the unit downloaded, so no OTP is needed. If the unit has finished compliance and started the integration phase, the terminal is saved with the status need to install the Production CSID file on device, and you install the file from the Terminal setup tab. If installing the file fails, the terminal is not saved.

What changes after registration​

  • Fields lock: you cannot change the unit name, the OTP, the serial number, the activity, the invoice type, the commercial register or the address. To change them, remove the registration or reconfigure the unit.
  • The compliance phase comes first. When the six invoices pass, the registration waits for the integration file, then moves to Integration after installation.
  • A unit that has a terminal record, even a removed one, cannot be deleted. Remove it instead.
  • The counter counts invoices per unit, or per stand-alone terminal. Settings Details shows the last counter of a unit. The Counter Numbers by Work Unit report and the requirements verification compare the numbers and reveal duplicate or missing ones.
  • Disabling stops the terminals from issuing e-invoices. It deletes nothing.
  • These windows have no command to renew a CSID file. The Expiry Date column in Settings Details shows when the integration file ends. To start again, use remove settings or unit reconfiguration.
  • Every operation is written to the log.

Messages​

MessageWhy it appearsWhat to do
No server set yet, please select the server you want to connect to from E-invoice settings.The service type was not chosen in the e-invoice settings at registration.Choose it on the service tab and try again.
Empty Field: The OTP code is required, it consists of 6 numbers...The code is empty or not six digits.Create a new code on the portal and enter it.
Name is duplicated: Unit name already exists. / Terminal name already exists.The name is used.Change the name.
Invalid value: The name is used in another card Can't save card!In the unit window: the unit name is already used by a unit.Change the name.
The serial number is duplicated: Unit serial number already exists. / Terminal serial number already exists.The number is used with the same prefix. The message gives the last reserved number.Use another number.
Invalid value: There are invalid charactersThe name contains -.Remove it.
Please enter unit name. / Please enter the OTP / Please enter unit activity name. / Branch Name Missing. / Please enter address.A required field is empty. "Please enter the OTP" appears when Serial Number is empty.Fill the field.
Unit activity name exceeded the allowed characters count which is 20. / Branch name exceeded...More than 20 characters.Shorten it.
Invalid corporate / company name, Invalid Tax Number, Invalid TINThe company data in the tax settings does not match what will be sent. If the Latin name has extra spaces the message says so.Correct the company data, or remove the settings and enter them again.
Connection error... / No response from the server... / Service login error / Service login error! make sure the Production CSID file is valid. / You are not authorized to access the service...The connection failed or the authority refused when downloading a CSID file. For a unit and for a stand-alone terminal nothing is saved.Check the connection or the OTP, then try again. If it persists, contact your network administrator.
Error installing CSID file: ...run the program as administrator...Your rights do not allow installing the file on this computer.Run the program with the right to install, then click Install.
Unable to cancel settings, there are ready-to-report invoices that must be processed first.Invoices with status Ready for Reporting or Ready for Clearance belong to the unit or terminal.Send them first. See Send invoices to the authority.
The unit is linked to a device / devices, cannot delete.The unit has a terminal record.Use remove unit settings.
Error in transferring terminal settings. Please try again.The settings could not be moved from the previous year's file.Try again.
There are invoices whose status is unprepared or draft in the old file, do you want to continue?When transferring settings.Yes continues and No stops.
There are invoices whose status is ready-to-report in the old file, do you want to continue?When transferring settings. It appears with an OK button only and stops the operation, although it asks.Send the invoices in the old file, then repeat.

This page applies to alameen ERP 10, version 10.1.79.764.