Rules / IBR-SR-06
Preceding invoice reference must occur maximum once
Preceding invoice reference (ibt-025) must occur maximum once.
Fails
<cac:BillingReference>
<cac:InvoiceDocumentReference>…</cac:InvoiceDocumentReference>
<cac:InvoiceDocumentReference>…</cac:InvoiceDocumentReference>
</cac:BillingReference>
Fix
Keep one cac:InvoiceDocumentReference in cac:BillingReference and delete the extras. If both values matter, one of them belongs in a different field.
Schematron
- Context
cac:BillingReference- Test
(count(cac:InvoiceDocumentReference) <= 1)
Official text: Preceding invoice reference (ibt-025) MUST occur maximum once