BR-KSA-DEC-03: Line VAT amount may have at most two decimals

Explained by Matheel from ZATCA's rule text and the condition SDK 3.4.8 executes · Updated

Warning: accepted with a warningAll invoicesFields: KSA-11

In each cac:InvoiceLine, cac:TaxTotal/cbc:TaxAmount (KSA-11) must have no more than two digits after the decimal point.

How to fix it

Round the line VAT amount to 2 decimals, e.g. <cbc:TaxAmount currencyID="SAR">15.00</cbc:TaxAmount>.

ZATCA's official text

[BR-KSA-DEC-03]-VAT amount at line level (KSA-11) must have a maximum two decimals.
Source: ZATCA SDK 3.4.8 · ZATCA KSA rules

Fails when (the condition ZATCA's SDK runs)

not(string-length(substring-after(cac:TaxTotal/cbc:TaxAmount,'.'))<=2)

Related rules

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