BR-DE-17
XRechnung 2.4.0 · CII
Original rule text
[BR-DE-17] Mit dem Element "Invoice type code" (BT-3) sollen ausschließlich folgende Codes aus der Codeliste UNTDID 1001 übermittelt werden: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice) und 381 (Credit note),875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).
normalize-space(rsm:ExchangedDocument/ram:TypeCode) = ('326', '380', '384', '389', '381', '875', '876', '877')What this rule requires
This warning checks the document type code (BT-3). In a UBL invoice or credit note, at least one of cbc:InvoiceTypeCode or cbc:CreditNoteTypeCode must contain one of the codes 326, 380, 384, 389, 381, 875, 876 or 877 (UNTDID 1001). In a CII invoice, rsm:ExchangedDocument/ram:TypeCode must contain one of those same codes. Because the severity is warning, the validator reports it but does not reject the document; it recommends using an allowed code.
How to fix
Set the document type code to one of the allowed values: 326, 380, 384, 389, 381, 875, 876 or 877. In UBL, put it in cbc:InvoiceTypeCode (on an invoice) or cbc:CreditNoteTypeCode (on a credit note); if both are present, at least one must have an allowed value. In CII, put it in rsm:ExchangedDocument/ram:TypeCode. Do not use any other code, and do not leave the relevant element empty or only whitespace.
Guidance on this rule. The original text above is authoritative.