BR-KSA-DEC-04: Line amount with VAT 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-12

In each cac:InvoiceLine, cac:TaxTotal/cbc:RoundingAmount (KSA-12, the line amount with VAT) must have no more than two digits after the decimal point.

How to fix it

Round it to 2 decimals, e.g. <cbc:RoundingAmount currencyID="SAR">115.00</cbc:RoundingAmount>.

ZATCA's official text

[BR-KSA-DEC-04]-Amount with VAT at line level (KSA-12) 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:RoundingAmount,'.'))<=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