Rules / IBR-SR-07
If there is a preceding invoice reference , the preceding invoice number must be present
If there is a preceding invoice reference (ibg-03) , the preceding invoice number (ibt-025) must be present.
Fails
<cac:BillingReference>
<!-- no cac:InvoiceDocumentReference/cbc:ID -->
</cac:BillingReference>
Fix
Add cac:InvoiceDocumentReference/cbc:ID to cac:BillingReference.
Schematron
- Context
cac:BillingReference- Test
(cac:InvoiceDocumentReference/cbc:ID)
Official text: If there is a preceding invoice reference (ibg-03) , the preceding invoice number (ibt-025) MUST be present