XRechnung 2.5.0 · CII

BR-DE-CVD-05

XRechnung 2.5.0 · CII

fatalcountry

Original rule text

[BR-DE-CVD-05] Wenn innerhalb von ITEM ATTRIBUTES (BG-32) der "Item attribute name" (BT-160) den Wert 'cva' hat, muss der "Item attribute value" (BT-161) einen der zulässigen Werte enthalten.

Stored validation assertion
normalize-space(ram:Value) = $CVA-CODES

What this rule requires

In a document flagged as CVD, if an item attribute has the name cva (UBL: cac:AdditionalItemProperty/cbc:Name, CII: ram:ApplicableProductCharacteristic/ram:Description), the corresponding item attribute value (BT-161) must be one of clean, zero-emission, or other. The value is checked after ignoring surrounding whitespace. A document fails validation when the value is missing, only whitespace, or any other text.

How to fix

Set the item attribute value for the cva attribute to one of the allowed values: clean, zero-emission, or other (e.g. <cbc:Value>clean</cbc:Value> or <ram:Value>clean</ram:Value>). If the value is currently missing or different, correct it in the invoice data or in the system that produces it.

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