BR-KSA-52: Each line needs a line VAT amount (KSA-11) on standard invoices
For standard tax invoices and their notes (InvoiceTypeCode @name starting '01'), every cac:InvoiceLine must contain a non-empty cac:TaxTotal/cbc:TaxAmount (KSA-11).
How to fix it
Add <cac:TaxTotal><cbc:TaxAmount currencyID="…">…</cbc:TaxAmount></cac:TaxTotal> to every invoice line.
ZATCA's official text
[BR-KSA-52]-The line VAT amount (KSA-11) is mandatory for tax invoice and associated credit notes and debit notes (KSA-2, position 1 and 2 = 01).
Source: ZATCA SDK 3.4.8 · ZATCA KSA rules
Fails when (the condition ZATCA's SDK runs)
not(every $line in //cac:InvoiceLine satisfies exists($line/cac:TaxTotal/cbc:TaxAmount) and ($line/cac:TaxTotal/cbc:TaxAmount) != '')
Related rules
- BR-KSA-06 · Invoice transaction code (name attribute) must follow NNPNESB
- BR-KSA-07 · Export invoices cannot be self-billed
- BR-KSA-10 · Standard invoices need buyer street, city and country code
- BR-KSA-15 · Standard tax invoices (388) need a supply date
- BR-KSA-25 · Simplified invoice with EDU/HEA exemption needs the buyer name
- BR-KSA-31 · Simplified invoices cannot be self-billed (KSA-2 position 7 = 0)
Validate your invoice against ZATCA's rules
Paste the XML and see every error and warning. It runs in your browser; the invoice goes nowhere.
Validate an invoice or try Matheel