Rules / IBR-SR-51
IBR-SR-51 error
Note must occur maximum once
Note (ibt-022) must occur maximum once.
Fails
<Invoice>
<cbc:Note>…</cbc:Note>
<cbc:Note>…</cbc:Note>
</Invoice>
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
/ubl:Invoice | /cn:CreditNote- Test
(count(cbc:Note) <= 1)
Official text: Note (ibt-022) MUST occur maximum once