UBL-SR-07

If there is a preceding invoice reference, the preceding invoice number shall be present

error: the document is invalid Peppol documentation ↗

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
(/ubl:Invoice|/cn:CreditNote)/cac:BillingReference
Test
(cac:InvoiceDocumentReference/cbc:ID)

Checked with France EXTENDED-CTC-FR (UBL)