Rules / IBR-SR-51
Note must occur maximum once
Note (ibt-022) must occur maximum once.
Fails
<cbc:Note>…</cbc:Note>
<cbc:Note>…</cbc:Note>
Fix
Keep one cbc:Note in the invoice and delete the extras. If both values matter, one of them belongs in a different field.
Schematron
- Context
/ubl:Invoice | /cn:CreditNote- Test
(count(cbc:Note) <= 1)
Official text: Note (ibt-022) MUST occur maximum once