Rules / IBR-SR-38
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 one cac:Item/cac:ClassifiedTaxCategory/cbc:TaxExemptionReason in cac:InvoiceLine and delete the extras. 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