Rules / IBR-096
IBR-096 error
Despatch advice reference must occur maximum once
Despatch advice reference (ibt-016) must occur maximum once.
Fails
<Invoice>
<cbc:ID>…</cbc:ID>
<cbc:ID>…</cbc:ID>
</Invoice>
Fix
Keep a single cbc:ID 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(cac:DespatchDocumentReference/cbc:ID) <= 1)
Official text: Despatch advice reference (ibt-016) MUST occur maximum once.