Egyptian Tax Settings
The Egyptian Tax Settings window holds everything the program needs to send invoices and receipts to the Egyptian Tax Authority: the invoice forms, the company card, the service login, the digital signature device, the activities and the tax accounts. It has one tab for each group of settings. For the steps in order, see Set up the Egyptian tax system.
Opening the window
Click Systems > Egyptian Taxes > Tools > Tax Settings. The group is named after the tax system that is active in the file.
The conditions that control it:
- Your licence must include the Egyptian tax system, and the system must be activated in the file. See Activate a tax system. Otherwise the command does not appear.
- The Users window has no permission for this command, so you cannot allow or deny it there.
- If other windows are open, the program asks: All opened windows must be closed before performing this operation. Are you sure you want to do this? Click Yes to close them and continue. Click No to stay where you are.
- The window puts the company file in exclusive mode while it is open. If the file is already in exclusive mode for another user, the program shows: The files are in exclusive mode, you can't log on to the files now. The window does not open.
- When you close the window, the program reloads the saved settings.
The window and its buttons
A list of tabs stands on the side of the window. Click a tab name to show its page. The tabs, in order: General, E-Invoice API, Company Info, Digital Signature Token, Accepted Activities, Accepted Countries, Accepted Currencies, Accepted Units, Tax Types, E-receipt Device in the Invoice, and Technical Support Settings. The last one does not appear in normal use (see Technical Support Settings).
After OK succeeds (not Save Current Page), the program changes every POS Pro station in the file, as long as the Egyptian tax system is on in it: Data Transfer Method becomes Instant data transfer, Generate bill for every material transaction is ticked, and stations that allow returns switch to Return and Exchang from Sales Operation with Allow return ticked. This happens on every OK, even if you changed nothing.
| Button | What it does |
|---|---|
| OK | Checks every tab in the order of the list. If a tab fails, the program shows its message and opens that tab. When all tabs pass, it saves them together, records a "Modify Tax Settings" entry in the log, changes the settings of every POS Pro station (see the warning before this table), and closes the window. It also writes the General tab again, even if you changed nothing there (see General). It shows no success message. If saving fails, the window stays open. |
| Save Current Page | Checks and saves only the tab you are on. It then shows "Settings saved successfully" and keeps the window open. It records the same log entry. |
| Close | Closes the window. It reads Cancel after you change something on a tab. If you changed something and the warning option On cancel is on, the program asks before it discards the changes. See Account Card. Close does not undo what Save Current Page already saved. |
Where the values are kept: all tabs save into the company file, so every user and every computer sees the same values. The one exception is E-receipt Device in the Invoice: its values stay on this computer.
What each tab saves, and what the program requires before it saves:
| Tab | What it saves | Checked before saving |
|---|---|---|
| General | The sales and return invoice forms, the sales order forms and the e-receipt forms. | Both invoice forms are chosen and valid. See General. |
| E-Invoice API | The provider, the service login, the old-version option and Use discount after tax. | User ID and Password are filled. |
| Company Info | The company card and its address. | The card, the address and their tax data. |
| Digital Signature Token | The device settings. | The PIN, unless the old-version option is ticked. |
| Accepted Activities | The activities in use and the default activity. | At least one activity is ticked. |
| Accepted Countries, Accepted Currencies, Accepted Units | Nothing. These lists are read-only. | Nothing. |
| Tax Types | Which tax types are used and the account of each. | Every used type has an account. |
| E-receipt Device in the Invoice | The device data, on this computer only. | All five fields, going by the e-receipt forms already saved. See E-receipt Device in the Invoice. |
| Technical Support Settings | The response-window and log-file settings. | The page size limit. |
General
This tab chooses which invoice forms go to the authority. It has two groups: E-invoice and E-receipt.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Sales Invoice Form | The sales invoice form whose invoices are sent as e-invoices. | Yes | A list of the sales invoice forms. It is disabled as soon as one invoice of the chosen form exists in the file, so you cannot change it later. |
| Return Invoice Form | The sales return form whose invoices are sent as e-invoices. | Yes | A list of the sales return forms. It is disabled as soon as one invoice of this form exists. |
| Sales Orders (grid) | Sales order forms whose invoices follow the e-invoice rules. | No | One column. Click a cell and choose a form from the lookup. The lookup offers the order forms linked to the sales invoice form that is already saved in the settings and that have no documents yet. A row that is already used cannot be edited. |
| Sales (grid, E-receipt group) | Invoice forms whose documents are sent as e-receipts instead of e-invoices. | No | One column. The lookup offers the forms of the sales kind that you may browse. A used row cannot be edited. |
| Sales returns (grid, E-receipt group) | The same, for sales return forms. | No | As above, for the sales return kind. |
| Use discount after tax | Adds the Discount after tax column to the items grid of the Egyptian invoice. | No | Once an invoice of the chosen sales form exists and the box is ticked, the box is disabled and you cannot clear it. It is saved with the E-Invoice API tab, not with this one. |
The tab shows two notes. The forms through which you send must have the option "Use VAT System" activated, and a form that is already used cannot be chosen, nor changed after the first invoice is added. The program does not check the option "Use VAT System", and it turns it off itself when it saves, as the warning below says.
Before it saves, the program checks:
- Both invoice forms are chosen.
- Neither invoice form is in the Sales returns grid of the E-receipt group.
- Unless both forms already have invoices: neither form calculates tax before discounts, and neither is a brief invoice form.
- A form that was not saved in the settings before has no invoices yet. The return form is not checked when the saved sales form already has invoices.
The program does not stop you from putting the sales invoice form in the e-receipt Sales grid. Do not put it there.
Every OK, and every Save Current Page on General, writes the General tab again, even if you changed nothing there. For every form you chose here (the two invoice forms, the order forms and the e-receipt forms) the program turns off the default VAT account, the VAT system, the sales tax, the tax on gifts, the tax before discount and the tax before extra. It also deletes all the tax and delivery-fee definitions of the restaurants module, each time. Do not rely on restaurant tax and delivery-fee definitions with the Egyptian tax system.
The number of days an old invoice may still be sent has no field on this tab. The program keeps a stored value for it (30 days by default) and uses it only when the program option Allow overdue invoices request is on.
E-Invoice API
This tab holds the login to the invoicing service.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Provider Name | The service you send to. | Yes | Actual (the real service) or Test (Demo). The first time, Actual is chosen. After the first invoice is sent, this box is disabled. |
| Service URL | The address of the service. | Filled by the program | Read-only. It changes when you change the provider. |
| User ID | The identifier of your ERP registration at the authority. | Yes | The value your provider gives you. After the first invoice is sent, this box is disabled. |
| Password | The secret that goes with User ID. | Yes | The value your provider gives you. It is masked on screen. |
| Send old versions 0.9 of invoices for Demo and test purposes (no digital signature required) | Sends invoices in the older format without a digital signature. | No | For demo and test only. When it is ticked the digital signature checks are skipped, and the PIN is not required in Digital Signature Token. |
| Button | What it does |
|---|---|
| Open Site | Opens the authority portal for the chosen provider in your browser. |
| Check Connection | Checks User ID and Password, then tries to sign in to the service. If it works, the program says "Operation successfully completed". If not, it shows the reason. See Messages. |
| Download Root CA Certificate File | Opens the download of the certificate file for the demo provider in your browser. |
The group Demo Provider Requirements lists the steps to install that certificate: download the file, click "Install Certificate", choose "Local Machine", choose the second option to place the certificate in a store, browse to "Trusted Root Certification Authorities", finish the wizard, register the ERP on the portal to get the ID and secret, and type them in User ID and Password. You need administrator rights on the computer. The group is shown for both providers.
Company Info
This tab says who the seller is. The program adds this information to every invoice it sends.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Corporate | The customer card that holds the company data: name, Latin name, tax number, phone, e-mail, fax. | Yes | Choose the card with the lookup. See Lookup boxes. Disabled after the first invoice is sent. |
| Address | The company address. | Yes | Lists the addresses of the chosen card. Choose the one that carries the branch code when the company has branches declared at the authority. Disabled after the first invoice is sent. |
| Button | What it does |
|---|---|
| Company Card | Opens the company card. It appears only after the first invoice is sent, when the two fields are locked. |
Before it saves, the program checks that a card and an address are chosen, and that their data pass the checks the program applies to the seller of an invoice: name, country (it must be in Accepted Countries), city, area, street, building number, the branch code when the card is of the company type, and the tax number (nine digits for a company, 14 for a person) unless the card is tax-exempt. When a message names a missing item, fix it in the card.
The program protects the card and the address that are set here. To change either of them, you need the permission Modify address and company card info in Users Management > Operations > Egyptian Taxes. You also cannot delete them.
Digital Signature Token
This tab sets up the USB device that signs the e-invoices. The program checks the device before it sends an e-invoice.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| USB Token is connected to current computer (local) | The device is plugged into this computer. | Fixed | The only choice. It is always selected. The option for a signature service on another server is not available. |
| PIN Code | The secret code of the device. | Yes | Masked. It is not required when the old-version option of E-Invoice API is ticked. |
| Certificate File | The name of the certificate file on the device. | No | Needed only when the device has more than one certificate or the program cannot find it. |
| Library Type | The driver library of your device. | Yes | eps2003csp11.dll or SignatureP11.dll. The default is eps2003csp11.dll. |
| Button | What it does |
|---|---|
| Validate Token | Checks the PIN is filled, then tries to open the device with the PIN, the certificate file and the library. If it works, the program says "Operation successfully completed". Otherwise it shows why. See Messages. |
| Download Digital Signature Setup | Opens the page where you download the driver setup for the device. |
The group Requirements for Token Authentication lists the steps: unplug the device, extract the downloaded file and install the program with the default options, plug the device in and enter its PIN. The device cannot be used through a remote desktop session.
Accepted Activities
This tab chooses the business activities you may put on an invoice. The list holds the activities of the authority.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Search box (no label) | Finds a row by typing. | No | Selects the first row that contains the text, from the start of the list, and moves the list to it. The program beeps when it restarts from the top. |
| Activities list | The activities, each with a box. | At least one | Tick the activities you use. Ticked ones are listed first when the tab opens. Each row shows the code and the name (the Latin name in an English program). |
| Default Activity | The activity the program puts on a new invoice. | Conditional | Lists the activities you ticked. If you tick exactly one activity, that one is the default and the box is ignored. If you tick more than one and leave the box empty, each invoice asks for its activity. |
| Code, Name, Latin Name (group Details) | The data of the selected row. | Read-only | Filled when you select a row. |
Before it saves, the program checks:
- At least one activity is ticked. Otherwise it shows: Please set one activity at least when send invoices.
- With more than one activity ticked and no default, it asks whether to continue: Defining default activity will help you each time you select an activity in the invoice, do you want to continue without setting it? The buttons are OK and Cancel.
- With a default that is no longer among the ticked rows, it shows: The selected activities have been changed after selecting the default activity, please reset or leave it unset.
The ticks are stored when the program starts to save, before the other tabs are written, and Close does not undo them. This applies to OK and to Save Current Page.
Accepted Countries, Accepted Currencies and Accepted Units
These three tabs show the lists the authority accepts. You cannot edit them here. The program checks the data of invoices, cards and materials against these lists.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Search box (no label) | Finds a row by typing. | No | Selects the first row that contains the text. |
| List | The accepted countries, currencies or units. | Read-only | Each row shows the code and the name. |
| Code, Name, Latin Name (group Details) | The data of the selected row. | Read-only | Filled when you select a row. |
| Button | Tabs | What it does |
|---|---|---|
| Show Card | Accepted Countries, Accepted Currencies | In the countries tab: opens the card of the country that has the same code, or a new country card with the name filled when the file has none. In the currencies tab: opens the currencies window. |
The Accepted Units tab has no button. The accepted codes also drive the checks of the data you enter elsewhere. For example, the country of an address and the unit of a material must match a code of these lists. The currency code of the file must be EGP. See Customer tax pages.
Tax Types
This tab decides which tax types of the authority you use and which account receives each one.
| Column | What it shows | Can you edit it? |
|---|---|---|
| Tax Name | The code and name of the tax type. | No. |
| Used | Yes or No. | Click the cell and choose. The first type, the value-added tax, cannot be changed here. A used type that already appears on a material or an invoice cannot be set to No, so its cell is dimmed. |
| Account | The account of the tax type, as code and name. | Only when Used is Yes. Click the cell and choose an account with the account lookup. Press the Delete key to clear it (the delete item of the row menu is dimmed). |
Each type you set to Yes in Used adds its columns (rate, value or sub-type) to the items grid of the Egyptian invoices and to the receipts of POS and restaurants. Setting it to No removes them.
Setting Used to No clears the account. The right-click menu of the grid has no insert, copy, cut or paste for rows.
Before it saves, every type with Used set to Yes must have an account. Otherwise the program shows: Please set an account for each tax used in "Tax Types" tab.
E-receipt Device in the Invoice
This tab describes the device that issues e-receipts on this computer. It matters only when e-receipt forms are saved in General.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Device Name | A name for the device. | Yes, with e-receipt forms | Free text. |
| Serial Number | The serial number registered at the authority. | Yes, with e-receipt forms | Free text. |
| Type | The operating system or kind of the device. | Yes, with e-receipt forms | Free text. |
| User | The user ID of the device registration. | Yes, with e-receipt forms | The value your provider gives you. |
| Password | The secret that goes with User. | Yes, with e-receipt forms | Masked. |
| Button | What it does |
|---|---|
| Check Connection | Checks the five fields (when e-receipt forms are saved), then asks the service to authenticate the device. It shows "Operation successfully completed" or the reason. |
The values are kept on this computer, not in the company file. Each computer that issues e-receipts needs them. The program goes by the e-receipt forms already saved. When you add e-receipt forms for the first time, click Save Current Page on General first, then fill this tab and click OK. If you click OK right after adding the first forms, the fields are not checked and the program saves whatever is on the tab, even if empty. If you remove all e-receipt forms without saving General, OK still asks for the five fields. Check Connection uses the same saved list. With no saved e-receipt forms the tab checks nothing.
Technical Support Settings
This tab does not appear in normal use. It appears only on computers where technical support has switched on its debugging setting. Do not change it without technical support.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Show response window when requesting service | Shows the reply of the service in a window. | No | When it is ticked, All shows it for every call and When send invoices only for sending. In the invoice window, a failed call or a rejected document shows its window whatever this box says. The Tax Invoices and Receipts List never shows it. |
| Activate Log file when send invoice | Records the calls to the service in the log file. | No | When it is ticked, choose one of the three levels. The box is ticked at Minimum Limit until the tab is saved the first time. |
| Advanced (further information to be stored to help Technical Support) | Records every call the program makes to the service for sending, and the failed ones, including those that returned the status 200. | No | |
| Intermediate | The same, except the calls that returned the status 200. | No | |
| Minimum Limit | As Intermediate, but the reply text of the sending calls is not stored. | No | |
| Number of Tax Invoices that prompted from the site (25 by default) | How many invoices each request brings back from the site. | No | A whole number. A value of zero or less becomes 25. The limit is 400. |
| Button | What it does |
|---|---|
| Preview | Opens the report Tax Service Requests Log File. |
| Clear | Asks: Are you sure you want to clear the Log file? Click OK to delete every row of the log, then shows "Operation successfully completed". The log is shared with the other tax systems that keep their calls in it, so the deletion removes their rows too. |
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Sales invoice form must be set. Sales Return invoice form must be set. | Sales Invoice Form or Return Invoice Form is empty. | Choose both forms. |
| The type of sales return invoice cannot be the same for e-invoice and e-receipt. | The chosen return form is in the e-receipt Sales returns grid. | Remove it from one side. |
| The option "Use VAT system" must be enabled, while the option "Calculate before discounts" must be de-selected in the form of both sales invoice and sales return invoice, cannot continue! | A chosen form calculates tax before discounts. | Open the form and clear that option. |
| The option "Brief bill" must be disabled in Sales invoice or sales return invoice form. | A chosen form is a brief bill form. | Choose another form, or change its setting. |
| The selected sales invoice form is used in an invoice, cannot continue! The selected sales return invoice form is used in an invoice, cannot continue! | You chose a form that already has invoices, while the form was not used in the settings before. | Choose another form. |
| Please enter user name. Please enter password. | User ID or Password is empty. | Fill it. |
| Failed to prompt service, with a reason | Check Connection failed. | See the reasons table in Send invoices. |
| Please set Customer Card that contains the company info. Please set company/corporate address. | Corporate or Address is empty. | Choose them. |
| The PIN code of the Token not set. | The token PIN is empty. | Type the PIN. |
| Token PIN code is incorrect. Please set the PIN in Tax Settings - Digital Signature Token tab. | The device refused the PIN. | Correct it. |
| Please install Token Activation Driver to be able to run the Token. | The program could not load the library you chose. | Install the driver, or choose the other library. |
| Ensure that the UBS Token is plugged in properly to your computer. Note: Token cannot be run remotely. | The device was not found. | Plug it in, and do not use a remote session. |
| Incorrect digital signature certificate. Either you need to install the certificate file or the certificate file name is missing. | The certificate was not found. | Type the certificate file name or install it. |
| Sorry, your Token is expired! | The certificate has expired. | Renew it with the company that issued the device. |
| Please set one activity at least when send invoices. | No activity is ticked. | Tick one. |
| Please set an account for each tax used in "Tax Types" tab. | A used tax type has no account. | Choose the accounts. |
| Must enter field value | A field of E-receipt Device in the Invoice is empty. | Fill all five fields. |
| The maximum page size of 400 has been exceeded. the maximum size will be replaced with the new value, do you want to continue? | The number of invoices per request is above 400. | OK sets it to 400. Cancel returns to the tab. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.