DE-R-017: If both supplier and customer are located in Germany, the element "Invoice type code"…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[DE-R-017]-If both supplier and customer are located in Germany, the element "Invoice type code" (BT-3) should only contain the following values from code list UNTDID 1001: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice), 381 (Credit note), 875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).
normalize-space(cbc:InvoiceTypeCode) = $supportedInvAndCNTypeCodes or normalize-space(cbc:CreditNoteTypeCode) = $supportedInvAndCNTypeCodesDE-R-017 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.
What this rule requires
DE-R-017 is an advisory warning, not a rejection. For a UBL Invoice or CreditNote where both the supplier's and customer's postal address country identification code is DE, the rule checks that cbc:InvoiceTypeCode or cbc:CreditNoteTypeCode (business term BT-3, "Rechnungstypcode") has one of the allowed UNTDID 1001 values: 326, 380, 384, 389, 381, 875, 876, 877. The test accepts at least one of the two type-code elements matching this list; surrounding whitespace is ignored. If neither element matches, the validator reports a warning.
How to fix
Ensure the relevant type code element (cbc:InvoiceTypeCode on an Invoice, cbc:CreditNoteTypeCode on a CreditNote) is present and contains one of the values listed by the rule: 326, 380, 384, 389, 381, 875, 876, 877. Choose the code that matches the document's actual type, for example 380 for a commercial invoice or 381 for a credit note.
Guidance on this rule. The original text above is authoritative.
Where to go next
DE-R-017 changed in 2 published Peppol BIS Billing UBL release comparisons:
- DE-R-017 in 3.0.20 → 3.0.21: Test expression rewritten
- DE-R-017 in 3.0.17 → 3.0.18: New rule
Validate an invoice against these rules · All release changes