Rules / IBR-SR-39
IBR-SR-39 error
Project reference must occur maximum once
Project reference (ibt-011) 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:ProjectReference/cbc:ID) <= 1)
Official text: Project reference (ibt-011) MUST occur maximum once.