Line VAT Amount Calculation (KSA-11)
Line VAT amount (cac:InvoiceLine/cac:TaxTotal/cbc:TaxAmount) must equal LineExtensionAmount (BT-131) * Line VAT Rate (BT-152) / 100.
- Scope
- Invoice Lines
- Applicable Invoice Types
- Standard (B2B), Simplified (B2C), Credit Note, Debit Note
- Catalog Version
- v1.0.0 (2026-11-23)
- Target XPath
/Invoice/cac:InvoiceLine/cac:TaxTotal/cbc:TaxAmount
Verification Status: Under Review
This rule ID is not listed in the clean ZATCA XML Implementation Standard / Data Dictionary v1.2 (2023-05-19), and ZATCA SDK (Schematron) verification is pending. GIC keeps its check logic unchanged, but the finding is not presented as a verified official compliance failure until authoritative evidence is available.
rules/zatca/official_evidence.json#BR-KSA-50
Typical Reason for Failure
ERP calculates VAT from gross price before line discount or uses binary float rounding.
Invalid Synthetic Example
<cbc:LineExtensionAmount currencyID="SAR">1000.00</cbc:LineExtensionAmount>
<cac:TaxTotal><cbc:TaxAmount currencyID="SAR">140.00</cbc:TaxAmount></cac:TaxTotal>Corrected Synthetic Example
<cbc:LineExtensionAmount currencyID="SAR">1000.00</cbc:LineExtensionAmount>
<cac:TaxTotal><cbc:TaxAmount currencyID="SAR">150.00</cbc:TaxAmount><cbc:RoundingAmount currencyID="SAR">1150.00</cbc:RoundingAmount></cac:TaxTotal>Explanation of the Fix
Compute line VAT with Decimal: (LineExtensionAmount * Percent) / 100.
Official Source Reference
UNDER REVIEW: rule ID not present in the clean ZATCA XML Implementation Standard v1.2 / Data Dictionary (2023-05-19); shown struck through in the official v1.2 tracked-changes Data Dictionary. ZATCA SDK (Schematron) verification pending. Evidence: rules/zatca/official_evidence.json
Open official specificationTest your invoice against BR-KSA-50 now
Browser quick check; raw XML is never stored.