PintLint

Rules / IBR-SR-32

IBR-SR-32 error

VAT exemption reason text must occur maximum once

VAT exemption reason text (ibt-120) must occur maximum once.

Fails

<cac:TaxSubtotal>
  <cbc:TaxExemptionReason>…</cbc:TaxExemptionReason>
  <cbc:TaxExemptionReason>…</cbc:TaxExemptionReason>
</cac:TaxSubtotal>

Fix

Keep a single cbc:TaxExemptionReason here and delete the duplicates. If both values matter, one of them belongs in a different field.

Schematron
Context
//cac:TaxSubtotal
Test
(count(cac:TaxCategory/cbc:TaxExemptionReason) <= 1)

Official text: VAT exemption reason text (ibt-120) MUST occur maximum once.

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice