Rules / IBR-SR-34
IBR-SR-34 error
Invoice line note must occur maximum once
Invoice line note (ibt-127) must occur maximum once.
Fails
<cac:InvoiceLine>
<cbc:Note>…</cbc:Note>
<cbc:Note>…</cbc:Note>
</cac:InvoiceLine>
Fix
Keep a single cbc:Note 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(cbc:Note) <= 1)
Official text: Invoice line note (ibt-127) MUST occur maximum once