Rules / IBR-SR-34
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 one cbc:Note 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(cbc:Note) <= 1)
Official text: Invoice line note (ibt-127) MUST occur maximum once