PintLint

Rules / IBR-SR-38

IBR-SR-38 error

Invoiced item tax exemption reason text must occur maximum once

Invoiced item tax exemption reason text (ibt-185) must occur maximum once.

Fails

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

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:InvoiceLine | cac:CreditNoteLine
Test
(count(cac:Item/cac:ClassifiedTaxCategory/cbc:TaxExemptionReason) <= 1)

Official text: Invoiced item tax exemption reason text (ibt-185) MUST occur maximum once

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

Check an invoice