E-receipts and e-invoices (Tax Authority)

Link the clinic with the Egyptian Tax Authority, issue an e-receipt for every patient payment, follow refused receipts, and send signed e-invoices to insurance and contract companies.

ReceptionAccountsClinic owner

The clinic server sends the Egyptian Tax Authority (ETA) an e-receipt for patient payments and an e-invoice for insurance and contract companies. The app never talks to the Tax Authority itself: every payment you record as usual reaches the server, and the server issues, sends and follows the documents. Medical services are VAT-exempt, so their documents carry the exemption code and no tax; only goods the clinic sells can carry VAT, when you set a rate for them.

Before you start

The clinic must be registered with the Tax Authority and have:

  • Its tax registration number (RIN) and the activity code registered for the branch (8620 for clinics).
  • A registered point of sale (POS) for e-receipts: its serial, client ID, client secret and pre-shared key from the Tax Authority portal.
  • For e-invoices: the ERP client ID and secret, and the electronic signing token (USB) from Egypt Trust, MCDR or another licensed issuer.
  • Item codes (EGS) for the clinic's services, approved by the Tax Authority.

Only the clinic administrator can change these settings. Open Settings → Tax (ETA).

Settings → Tax (ETA): the registration, receipts and invoices.
  1. 1Turns the link on for the whole clinic.
  2. 2The number on the clinic's tax card.
  3. 3Used for any payment whose service has no code of its own.
  4. 4Automatically for every payment, or only when someone presses Issue.
  5. 5Where automatic receipts start. Change picks another date.
  6. 6The tax on goods the clinic sells, if any.
  7. 7For a token on another Windows PC (cloud clinics).
  8. 8Logs in to the Tax Authority with the saved data.
  1. Turn on Turn on the Tax Authority link and choose the environment.
  2. Fill in the clinic registration: the name registered with the Tax Authority, the syndicate licence number, the branch and its address.
  3. Enter the Default service code (EGS). To give a service its own code, open it in the services list (visit types) and fill ETA item code (EGS/GS1).
  4. Under E-receipts (patients) choose how receipts are issued and enter the POS data. Secrets are stored encrypted on the server; a green tick means one is saved, and an empty box keeps it.
  5. Under E-invoices (companies) enter the ERP data and say where the signing token is:
  • The token is plugged into the server PC: enter the Token PIN.
  • The token is on another Windows PC (signer): press Pair a signer PC and use the code on that PC (see below).
  1. Press Save, then Test connection. Each part says Ready or lists what is still missing, by the names of the boxes on this tab.

VAT on sold goods

Visits, surgeries, investigations and services are exempt and always stay without tax. If the clinic sells taxable goods (glasses, for example), fill VAT on sales:

  1. VAT % on sold items: the rate for every item sold from Sales (14 for the standard rate). Leave it empty when nothing the clinic sells is taxable.
  2. Sale prices already include VAT: on when the price the customer pays already has the tax inside it (the tax is taken out of it); off when the tax is added on top of the listed price.
  3. Under A different rate for a category give an item category its own rate: 0 makes it exempt (medicines), empty leaves it on the rate above.

A sale's e-receipt then carries each item's price before tax, its rate and the tax; the receipt you print shows Before VAT, VAT and the total. Ask your accountant which rate applies before turning it on.

A signer PC for cloud clinics

A cloud clinic's server cannot see a USB token, so a small signer runs on the Windows PC that holds it. Press Pair a signer PC; the app shows a code valid for 15 minutes. On that PC, run the EtaSignerSetup.ps1 script from the ESCAI server package with the code, the clinic address, the clinic access code and the token PIN. It installs the EsClinic ETA Signer service, which signs invoices whenever the token is plugged in.

E-receipts for patients

In automatic mode every patient payment gets an e-receipt: bookings and their deposits, patient-account payments, surgeries and sales. Money given back gets a return receipt for the same amount: a refund, a reversed or edited payment, a deleted booking, a deleted or edited sale. When a payment is printed, the receipt is issued at once and its QR code is printed under the receipt table, so the patient can check it on the Tax Authority site.

Automatic receipts start from the moment you switch them on. The clinic's earlier payments are never sent, and neither are payments made while the mode was Only when I press Issue. Issue automatic receipts for payments from on the Tax tab shows the start; press Change only to move it a few hours back, because the Tax Authority refuses receipts older than 24 hours.

Money the clinic pays out is never reported as a patient's receipt: a surgery's costs (the surgeon, the anaesthetist, the centre), purchases, salaries and other expenses get no document.

In manual mode nothing is sent until someone presses E-receipt for the payment: in the waiting list's bottom bar for the selected booking, or in the menu of a payment in the patient's Account tab.

A sale has its own buttons in Sales: Print receipt prints the items, the VAT when there is any, and what was paid; E-receipt opens the sale's e-receipt or issues it.

While the link is on, every printed receipt, account statement and invoice carries the clinic's tax registration number, and a receipt with an e-receipt prints its number beside the QR code.

Open E-receipts & e-invoices from Finance to see every document and its state. The two boxes above the list narrow it to a period and to one state; open a document and press Print for a paper copy with the seller, the buyer, the lines and the tax.

The receipts sent to the Tax Authority and their state.
  1. 1Every e-receipt, newest first.
  2. 2Refused receipts, ones not sent for many hours, and ones the Tax Authority has not answered.
  3. 3Starts an e-invoice for a contract company.
StateMeaning
queuedWaiting for the server to send it (no internet, or a moment after the payment).
submittedSent; the Tax Authority is checking it.
validAccepted. The QR code works.
invalidRefused. Open it to see why.
cancelledCancelled at the Tax Authority.

A refused receipt

Open the receipt to read the Tax Authority's reason, fix the cause (for example the service's item code, or the clinic data in settings) and press Retry.

A refused receipt with the reason and Retry.
  1. 1The reasons as the Tax Authority sent them.
  2. 2Sends a corrected receipt again.

Return a valid receipt

Open the receipt and press Issue a return receipt. The return is sent for the whole amount and stays linked to the original receipt.

A receipt is returned once. After that it shows This receipt already has a return receipt. and the button is gone, on every device. If the return itself is refused, open the return and press Retry instead of issuing another one.

An accepted receipt with its Tax Authority QR code.
  1. 1Reverses the receipt with a return receipt.
  2. 2The same QR code printed on the patient's receipt.

E-invoices for insurance and contract companies

First give the company its tax identity: in Contracts, open the company and fill Tax registration number, Receiver type and the tax address (governorate | city | street | building).

  1. In E-receipts & e-invoices press New company invoice.
  2. Choose the Company and the period, then press Suggest lines. The app adds the company's share of each visit type in the period (the contract price minus the patient's percentage).
  3. Check the lines; change, add or delete any of them.
  4. Give a line a VAT % only if it is a taxable good; medical services stay empty.
  5. Press Save draft to finish later, or Sign and send. The saved invoice opens: Print gives the company a paper copy (a draft says it is not accepted yet), and Edit reopens a draft to change its lines.
A contract company's invoice with the suggested lines.
  1. 1The company's share of the period's visits, by visit type.
  2. 2Keeps the invoice without sending it.
  3. 3Signs with the token and sends it to the Tax Authority.

The invoice waits in signing until the token signs it, then follows the same states as a receipt. A valid invoice can be cancelled within the Tax Authority's cancel period with Cancel at the Tax Authority; after that a credit note is needed.

The tax report

Reports → Finance → Tax documents adds up a period's documents on the server: how many were accepted, are waiting or were refused, the sales before VAT, the VAT, the returns and the net total, then a table by type and state. Refused documents are listed under it; tap one to read the reason and resend it. The download button exports the tables to Excel or CSV.

The tax documents of a period.
  1. 1Documents the Tax Authority accepted.
  2. 2Documents to open and resend.
  3. 3The tax of the period, less the tax of returns.

Permissions

PermissionAllows
E-receipts: see and issueOpen the e-receipts screen and issue, retry or return receipts.
Company e-invoicesCreate, sign and send company invoices.

The Tax documents report needs E-receipts: see and issue and the finance reports. The Tax (ETA) settings need a clinic administrator sign-in.

See also patient accounts and prices and fees.

Last updated: · Matches ESCAI 1.35.0