BR-DE-26
XRechnung 2.0.2 · UBL
Original rule text
[BR-DE-26] Wenn im Element "Invoice type code" (BT-3) der Code 384 (Corrected invoice) übergeben wird, soll PRECEDING INVOICE REFERENCE BG-3 mind. einmal vorhanden sein.
((not(cbc:InvoiceTypeCode = 384 or cbc:CreditNoteTypeCode = 384) or (cac:BillingReference/cac:InvoiceDocumentReference)))What this rule requires
The rule applies to invoices and credit notes. If the invoice type code (BT-3) or credit note type code is set to 384 (corrected invoice), the rule expects at least one preceding invoice reference element (cac:BillingReference/cac:InvoiceDocumentReference) to be present. Because this is a warning, the validator reports it but the document is not rejected; the rule is advisory and recommends that corrected invoices carry a reference to the preceding invoice.
How to fix
If the document uses type code 384, add at least one cac:BillingReference/cac:InvoiceDocumentReference element to the invoice. The test only checks that this element exists, so ensure the element is present and populated with the appropriate preceding invoice reference details.
Guidance on this rule. The original text above is authoritative.