On this page
Tax
The Tax module calculates VAT on each line of sales, purchasing and cash documents. It prepares the VAT return from posted entries, applies withholding tax on receipts and payments, and issues e-invoices for Saudi companies.
The module is always enabled. Its screens appear in the sidebar under Tax (TX1).
Screens in this chapter
| Screen in the sidebar | What it's for | Page |
|---|---|---|
| VAT returns | Prepare, review and close the return | VAT returns |
| E-invoices | Track e-invoices and send pending ones | E-invoicing |
| Tax codes | Codes, their rates and their accounts | Tax codes |
| Tax determination | Tax categories and determination rules | Tax determination |
| Tax settings | Country, tax number, filing frequency and accounts | Tax settings |
| Tax ledger, Tax reconciliation and Withholding tax report | Reports | Tax reports |
Withholding tax is recorded on receipt and payment vouchers: see Withholding tax.
How tax is calculated
For each line, in this order (D9a, SP19):
- Gross = quantity × price. Then the line discount is applied.
- The header discount is spread across the lines in proportion to each line's net amount before tax. Small differences go to the largest remainders, so the total matches exactly. An item excluded from the header discount gets no share of it.
- Taxable amount = line net − its share of the header discount.
- Tax = taxable amount × rate, rounded on each line to the currency's decimals, with halves rounded away from zero (D6).
- Document totals = the sum of the rounded lines. There's no tax at header level.
With tax-inclusive prices, the inclusive amount stays as it is, and the tax is extracted from it on each line (TX3).
Example: two lines of 100 each, the first at 16% and the second at zero, with a header discount of 20. Each line's share is 10, the taxable amount is 90, and the tax is 14.40, on the first line only.
Where the tax code comes from
- Sales: from the determination rules, based on the customer's category and the item's category. If no rule applies, the default sales code in Tax settings is used. A copied line keeps its source line's code.
- Purchasing, notes and petty cash: the code entered on the line (Tax code). It must be an existing code for the right side, or the line is rejected (TX10).
- Bank charges: the bank charges tax code in settings. The charge includes tax (CB18).
Accounting impact
Each tax line in the journal entry carries the tax code and its role:
- Taxable amount: the revenue, expense, discount or party line.
- Tax: the tax account.
- Non-recoverable tax: added to cost.
The return and the reports are built from these lines alone, so they always match the general ledger (TX2).
| Document | Debit | Credit |
|---|---|---|
| Sales invoice | Customer (gross), sales discount | Revenue, output tax |
| Supplier invoice | Inventory or expense, input tax (recoverable part), cost (non-recoverable part) | Supplier |
| Reverse-charge purchase | Input tax | Reverse-charge tax account (added to the purchase entry) |
| Debit note to a customer | Customer | Line accounts, output tax |
| Bank charge | Charge (net), input tax | Bank |
| Receipt voucher with withholding | Cash box, tax withheld by customers | Customer (gross amount) |
| Closing the return | Output tax accounts (balance) | Input tax accounts, with the difference to tax payable (or, the other way round, to tax recoverable) |
First-time setup
- Create the tax accounts in the chart of accounts: output tax, input tax, tax payable, tax recoverable, and withholding tax accounts if you need them.
- Create tax codes with their rates and accounts.
- Configure Tax settings: country, tax number, filing frequency, settlement accounts and default codes.
- If you need them, add determination categories and rules.
Not available yet
- Export files for tax authority portals. (You can print the return as a PDF from the return page.)
- Certification of the integration against ZATCA's sandbox before the first Saudi tenant. Registering an e-invoicing unit with ZATCA (certificate request, compliance certificate and checks, production certificate) and full document signing are available (OA-F3). See E-invoicing.