Rules / IBR-095
Receiving advice reference must occur maximum once
Receiving advice reference (ibt-015) must occur maximum once.
Fails
<Invoice>
…<cbc:ID>…</cbc:ID>
…<cbc:ID>…</cbc:ID>
</Invoice>
Fix
Keep one cac:ReceiptDocumentReference/cbc:ID 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(cac:ReceiptDocumentReference/cbc:ID) <= 1)
Official text: Receiving advice reference (ibt-015) MUST occur maximum once.