XRechnung 2.5.0 · UBL

BR-DE-CVD-04

XRechnung 2.5.0 · UBL

fatalcountry

Original rule text

[BR-DE-CVD-04] Ein "Item classification identifier" (BT-158) mit dem Scheme identifier 'CVD' muss einen Wert aus der Liste der zulässigen Fahrzeugkategorien enthalten.

Stored validation assertion
not(normalize-space(@listID) = 'CVD') or normalize-space(.) = $CVD-VEHICLE-CATEGORY

What this rule requires

The rule checks each invoice or credit note line item's ItemClassificationCode (BT-158). When the classification scheme identifier (@listID) is 'CVD', the code value must be one of the allowed vehicle categories: M1, M2, M3, N1, N2, N3. If the list identifier is not 'CVD', the rule does not restrict the value. A document is rejected when the list identifier is 'CVD' and the code is not one of those six values.

How to fix

Set the text of the item classification code to one of M1, M2, M3, N1, N2, N3 when the @listID attribute is 'CVD'. If the classification is not a CVD vehicle category, correct the @listID to the appropriate scheme identifier or remove the 'CVD' list identifier so the rule does not apply.

Guidance on this rule. The original text above is authoritative.