# Tax postings and VAT boxes

> What each tax rate books in the ledger per document kind, the VAT 201 box each posting feeds, where the rules come from and how to read them under Settings → Accounting.

Source: /help/en/accounting/tax-postings-and-vat-boxes

A tax posting rule says what a document line with a given tax rate does in the books: which amount is booked (the net amount of the lines, or the VAT), on which account, with which sign, and which box of the VAT 201 return it feeds. The rules are rows, not code: they come from the country pack with a legal source on every row, so a second country is another set of rows. Alya Books seeds them for every tax rate of the organisation when the ledger is enabled and whenever a tax rate is added.

## Read the rules

Go to **Settings → Company → Accounting → Posting of documents**. The table lists, per tax rate and document kind (invoice, credit note):

- **Posting**: *Base* is the net amount of the lines (booked on the item's income account or the sales default); *VAT* is the tax, booked on the named account.
- **Books**: the account of a VAT posting, its factor when it is not 100 % (a negative factor books the other side, for self-assessed tax that nets to zero and still fills both boxes), and *self-assessed, base × rate* when the posting computes tax the document does not carry.
- **VAT 201 box**: the box the posting feeds; *1a–1g by emirate* means box 1 of the emirate of supply; *negated* means a credit note reduces the box.
- **Source**: the key of the legal source in the pack's register (hover for the note).

**Add missing rules** writes the pack's rules for tax rates that have none yet (idempotent).

## The UAE rules (pack ae_ifrs_sme)

| Tax code | Invoice | Credit note | Source |
|---|---|---|---|
| S standard 5 % | base → box 1 (emirate); VAT → 2100 VAT output tax, box 1 VAT | same, box amounts negated | Decree-Law 8/2017 art. 3; Exec. Reg. art. 64(5)(d); art. 62 for credit notes |
| Z zero-rated | base → box 4, no VAT line | box 4 negated | Decree-Law art. 45; Exec. Reg. art. 64(5)(e) |
| E exempt (each reason) | base → box 5, no VAT line | box 5 negated | Decree-Law art. 46; Exec. Reg. art. 64(5)(f) |
| AE reverse charge (customer accounts for VAT) | base, no box: the worksheet shows the value for information | same | Decree-Law art. 48 |
| O out of scope | base, no box | same | Decree-Law arts 27 to 32 (place of supply) |

Profit margin scheme lines are not posted yet: an invoice with such a line is refused with `tax_unmapped` until the rule exists.

The box names and the emirate letters are the ones of the VAT 201 worksheet in Alya Books: the ledger's box figures for a period equal the worksheet's figures for the same documents (the worksheet counts reported documents; the ledger books from validation on).

## Good to know

- Rules name accounts by role (VAT output, VAT self-accounted, VAT input): archiving an account with a replacement keeps the rules pointing at the right one.
- A tax rate added later gets its rules at once; a rate whose code family changes gets new ones.
- A line's VAT is matched to a tax rate by category and rate, and by exemption reason code when the line carries one. Several matching rates are fine while their rules are identical (the four exempt reasons all feed box 5); rules that differ refuse the posting with `ambiguous_tax` until the line names its rate.
- The API offers `GET /ledger/tax-postings` (filter `documentKind`, `taxRateId`) and `POST /ledger/tax-postings/seed`; AI assistants use `list_tax_postings`.

## The settlement entry of a filed return (milestone C6)

Marking a VAT return as filed posts one entry in the general journal, dated the period end, module `vat`, module reference `vat:<return>`: output tax (2100) and the self-assessed reverse-charge VAT (2120) of the period are debited, input tax (1400) is credited, and the net is carried to **2110 VAT payable** (a credit, the amount due) or **1410 VAT refundable** (a debit, the role `vat_refundable` of pack 1.8.0) as an open item on the system contact **Federal Tax Authority**, due on the filing date. The movements are read by tax point date, so they equal boxes 12 and 13 of the ledger return once the parity check is clean. A tax payment on the Bank page settles the open item; reopening the return reverses the entry, and a second filing posts `vat:<return>:2`. The label reads *VAT return … settled* in the journal.

Every tax line also carries a **tax point date** now (the document's, else the entry date): the ledger return and the parity check place lines by it, and a reversal inherits the date of the lines it reverses.

## Related

- [Posting invoices to the ledger](/help/en/accounting/posting-invoices-to-the-ledger)
- [VAT rates and categories](/help/en/account-and-setup/tax-rates)
- [Chart of accounts](/help/en/accounting/chart-of-accounts)
