DE-R-026: If both supplier and customer are located in Germany, and if "Invoice type code" (BT-3)…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[DE-R-026]-If both supplier and customer are located in Germany, and if "Invoice type code" (BT-3) contains the code 384 (Corrected invoice), "PRECEDING INVOICE REFERENCE" (BG-3) should be provided at least once.
((not(normalize-space(cbc:InvoiceTypeCode) = '384' or normalize-space(cbc:CreditNoteTypeCode) = '384') or (cac:BillingReference/cac:InvoiceDocumentReference)))DE-R-026 is a warning rule in the country layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is flagged but not rejected. It refers to BT-3, BG-3.
What this rule requires
For a UBL invoice or credit note where both the supplier country and the customer country are DE, if cbc:InvoiceTypeCode or cbc:CreditNoteTypeCode equals 384 (Corrected invoice), the document must contain at least one cac:BillingReference/cac:InvoiceDocumentReference (PRECEDING INVOICE REFERENCE, BG-3). The test passes when neither type code is 384 or when the billing reference is present. Since this is a warning, the validator reports it as advisory and does not reject the document for this rule.
How to fix
If the type code is 384, add a cac:BillingReference containing cac:InvoiceDocumentReference to the invoice or credit note. This rule only checks that the element is present; it does not constrain the reference content. If the type code is not 384, no change is needed.
Guidance on this rule. The original text above is authoritative.
Where to go next
DE-R-026 changed in 2 published Peppol BIS Billing UBL release comparisons:
- DE-R-026 in 3.0.20 → 3.0.21: Test expression rewritten
- DE-R-026 in 3.0.17 → 3.0.18: New rule
Validate an invoice against these rules · All release changes