PintLint

Rules / ALIGNED-IBRP-O-09

The VAT category tax amount in a VAT breakdown where the VAT category code is "Not subject to VAT" must be 0 (zero)

The VAT category tax amount (ibt-117) in a VAT breakdown (ibg-23) where the VAT category code (ibt-118) is "Not subject to VAT" must be 0 (zero).

Fails

<cac:TaxSubtotal>
  <cbc:TaxableAmount currencyID="AED">1000.00</cbc:TaxableAmount>
  <cbc:TaxAmount currencyID="AED">50.00</cbc:TaxAmount>
  <cac:TaxCategory>
    <cbc:ID>O</cbc:ID>
  </cac:TaxCategory>
</cac:TaxSubtotal>

Fix

Set cbc:TaxAmount in the not-subject-to-VAT (O) breakdown to 0.00. If VAT is really due, fix the category.

Schematron
Context
/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
Test
xs:decimal(../cbc:TaxAmount) = 0

Official text: The VAT category tax amount (ibt-117) in a VAT breakdown (ibg-23) where the VAT category code (ibt-118) is "Not subject to VAT" MUST be 0 (zero).

Official · PINT AE (UAE) rules. Severity: error. Runs on UBL XML.

Check your invoice for this rule