UBL-SR-07: If there is a preceding invoice reference, the preceding invoice number shall be present
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[UBL-SR-07]-If there is a preceding invoice reference, the preceding invoice number shall be present
(cac:InvoiceDocumentReference/cbc:ID)UBL-SR-07 is a fatal rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
The rule requires that each cac:BillingReference in a UBL invoice contains a cac:InvoiceDocumentReference/cbc:ID. In other words, when a preceding invoice reference is provided, the preceding invoice number must be present. A fatal error occurs if any cac:BillingReference has no cac:InvoiceDocumentReference/cbc:ID child.
How to fix
Locate each cac:BillingReference in the invoice. Within it, ensure there is a cac:InvoiceDocumentReference containing a cbc:ID, and set that cbc:ID to the number of the preceding invoice.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to UBL-SR-07.
Validate an invoice against these rules · All release changes