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.

In English If an item attribute name (BT-160) in the item attributes (BG-32) is 'cva', the item attribute value (BT-161) must be one of the allowed values.

error: the document is invalid XRechnung Fehlermeldungen und ihre Lösung →

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

Context
(/ubl:Invoice[$isCVD]/cac:InvoiceLine | /cn:CreditNote[$isCVD]/cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty[cbc:Name = 'cva']
Test
normalize-space(cbc:Value) = $CVA-CODES

Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)

Context
/rsm:CrossIndustryInvoice[$isCVD]/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:ApplicableProductCharacteristic[ram:Description = 'cva']
Test
normalize-space(ram:Value) = $CVA-CODES

Checked with XRechnung 3.0 Invoice (CII)