PintLint

Rules / ALIGNED-IBRP-S-01

An Invoice that contains an Invoice line, a Document level allowance or a Document level charge where the VAT category code (ibt-151, ibt-95 or ibt-102) is "Standard rated" must contain in the VAT breakdown at least one VAT category code equal with "Standard rated"

An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the VAT category code (ibt-151, ibt-95 or ibt-102) is "Standard rated" must contain in the VAT breakdown (ibg-23) at least one VAT category code (ibt-118) equal with "Standard rated".

Fails when this is false

((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'])) > 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) > 0) or ((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'])) = 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) = 0)

The schematron test, verbatim. Context: /ubl:Invoice | /cn:CreditNote

Fix

Change the data so the condition below holds. It reads cac:AllowanceCharge, cac:ClassifiedTaxCategory, cac:TaxCategory, cac:TaxSubtotal. Paste the invoice into the validator to see the exact element that fails.

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

Check your invoice for this rule