PintLint

Rules / IBR-122-AE

When Invoice type code is 'Out of scope of VAT' or 'Credit note related to goods or services', then the Document level allowance VAT category code, Document level charge VAT category code, Invoiced item VAT category code must be either 'Exempt from VAT' and/or 'Not subject to VAT' and/or 'Zero rated'

When Invoice type code (IBT-003) is 'Out of scope of VAT' or 'Credit note related to goods or services', then the Document level allowance VAT category code (IBT-095), Document level charge VAT category code (IBT-102), Invoiced item VAT category code (IBT-151) must be either 'Exempt from VAT' and/or 'Not subject to VAT' and/or 'Zero rated'.

Fails

<cbc:InvoiceTypeCode>480</cbc:InvoiceTypeCode>
…
<cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID>…</cac:ClassifiedTaxCategory>

Fix

On out-of-scope invoices (480) and credit notes 81, every VAT category (cac:ClassifiedTaxCategory/cbc:ID on lines, cac:TaxCategory/cbc:ID on allowances, charges and the breakdown) must be E, O or Z. If VAT is charged, use type 380 (or 381 for a credit note) instead.

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
not((cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "81" or (cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "480") or (every $cat in (//cac:TaxCategory/cbc:ID | //cac:ClassifiedTaxCategory/cbc:ID) satisfies normalize-space($cat) = ("E","O","Z"))

Official text: When Invoice type code (IBT-003) is 'Out of scope of VAT' or 'Credit note related to goods or services', then the Document level allowance VAT category code (IBT-095), Document level charge VAT category code (IBT-102), Invoiced item VAT category code (IBT-151) MUST be either 'Exempt from VAT' and/or 'Not subject to VAT' and/or 'Zero rated'.

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

Check your invoice for this rule