Rules / IBR-107
Deliver to information must occur maximum once
Deliver to information (ibg-13) must occur maximum once.
Fails
<cac:Delivery>…</cac:Delivery>
<cac:Delivery>…</cac:Delivery>
Fix
Keep one cac:Delivery 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:Delivery) <= 1)
Official text: Deliver to information (ibg-13) MUST occur maximum once.