PintLint

Rules / ALIGNED-IBRP-O-05

An Invoice line where the VAT category code is "Not subject to VAT" must not contain an Invoiced item VAT rate

An Invoice line (ibg-25) where the VAT category code (ibt-151) is "Not subject to VAT" must not contain an Invoiced item VAT rate (ibt-152).

Fails

<cac:ClassifiedTaxCategory>
  <cbc:ID>O</cbc:ID>
  <cbc:Percent>0</cbc:Percent>
  <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
</cac:ClassifiedTaxCategory>

Fix

Delete cbc:Percent from the line's cac:ClassifiedTaxCategory. Lines not subject to VAT carry no rate.

Schematron
Context
cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
Test
not(cbc:Percent)

Official text: An Invoice line (ibg-25) where the VAT category code (ibt-151) is "Not subject to VAT" MUST not contain an Invoiced item VAT rate (ibt-152).

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

Check your invoice for this rule