BR-DE-26
XRechnung 2.2.0 · CII
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(rsm:ExchangedDocument/ram:TypeCode = 384) or (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument)What this rule requires
The rule recommends that if rsm:ExchangedDocument/ram:TypeCode (Invoice type code, BT-3) has the value 384 (Corrected invoice), then at least one rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument (PRECEDING INVOICE REFERENCE, BG-3) must be present. A document triggers this guideline when the type code is 384 and no ram:InvoiceReferencedDocument exists. Because severity is warning, the validator reports this but does not reject the document.
How to fix
If the invoice is a corrected invoice (384), add at least one ram:InvoiceReferencedDocument under ram:ApplicableHeaderTradeSettlement to reference the preceding invoice.
Guidance on this rule. The original text above is authoritative.