PintLint

Rules / ALIGNED-IBRP-E-06

In a Document level allowance where the Document level allowance VAT category code is "Exempt from VAT", the Document level allowance VAT rate must be 0 (zero)

In a Document level allowance (ibg-20) where the Document level allowance VAT category code (ibt-95) is "Exempt from VAT", the Document level allowance VAT rate (ibt-96) must be 0 (zero).

Fails

<cac:AllowanceCharge>
  <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  <cbc:Amount currencyID="AED">100.00</cbc:Amount>
  <cac:TaxCategory>
    <cbc:ID>E</cbc:ID>
    <!-- no cbc:Percent -->
    <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
  </cac:TaxCategory>
</cac:AllowanceCharge>

Fix

Set cbc:Percent in the allowance's cac:TaxCategory to 0. For category E on an allowance the rate must be there and be 0.

Schematron
Context
cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
Test
(cbc:Percent castable as xs:decimal and xs:decimal(cbc:Percent) = 0)

Official text: In a Document level allowance (ibg-20) where the Document level allowance VAT category code (ibt-95) is "Exempt from VAT", the Document level allowance VAT rate (ibt-96) MUST be 0 (zero).

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

Check your invoice for this rule