BR-DE-21
Das Element "Specification identifier" (BT-24) soll syntaktisch der Kennung des Standards XRechnung entsprechen.
Why it fails
- The specification identifier (BT-24) is not the XRechnung one: the invoice declares plain EN 16931, Peppol BIS, Factur-X or an older XRechnung version.
How to fix it
For XRechnung 3.0 use urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0 in cbc:CustomizationID (ram:GuidelineSpecifiedDocumentContextParameter/ram:ID in CII). If the invoice is meant to be Peppol BIS, validate it against the Peppol profile instead.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
/ubl:Invoice | /cn:CreditNote
cbc:CustomizationID = $XR-CIUS-ID or cbc:CustomizationID = $XR-EXTENSION-ID or cbc:CustomizationID = $XR-CVD-ID
Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)
/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext
ram:GuidelineSpecifiedDocumentContextParameter/ram:ID = $XR-CIUS-ID or ram:GuidelineSpecifiedDocumentContextParameter/ram:ID = $XR-EXTENSION-ID or ram:GuidelineSpecifiedDocumentContextParameter/ram:ID = $XR-CVD-ID
Checked with XRechnung 3.0 Invoice (CII)