Provide an allowed value for the cva attribute

Error BR-DE-CVD-05 XRechnung

If, within <name/> ITEM ATTRIBUTES (BG-32), <name/> "Item attribute name" (BT-160) has the value 'cva', <name/> "Item attribute value" (BT-161) shall contain one of the permitted values.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

For a product characteristic whose ram:Description is cva, the normalized value of ram:Value is not included in the list of allowed values.

What the rule means

The cva attribute must contain a value from its designated list. Other values are not permitted for this attribute.

Affected fields BG-32 BT-160 BT-161
Please provide an allowed value for the `cva` product attribute

The cva product attribute has a value that is not in its allowed value list. You can adjust the value on the product characteristic.

What to do
  1. Find the product characteristic whose ram:Description is cva.
  2. Check its value in ram:Value.
  3. Adjust the mapping through ApplicableProductCharacteristic.Value and also check ApplicableProductCharacteristic.Description.
  4. Regenerate the invoice and validate it again.
Check in FactoorSharp
  • ApplicableProductCharacteristic.Description (BT-160)
  • ApplicableProductCharacteristic.Value (BT-161)
  • TradeLineItem.ApplicableProductCharacteristics (BG-32)
Technical details

For product characteristics whose ram:Description is cva, the test checks whether the normalized text content of ram:Value is included in $CVA-CODES.

Where the rule applies

The rule applies to ram:Value of a product characteristic in ram:ApplicableProductCharacteristic when its ram:Description has the value cva.

Original message from the Schematron
Wenn innerhalb von <name/> ITEM ATTRIBUTES (BG-32) der <name/> "Item attribute name" (BT-160) den Wert 'cva' hat, muss der <name/> "Item attribute value" (BT-161) einen der zulässigen Werte enthalten.
Context (rule/@context)
/rsm:CrossIndustryInvoice[$isCVD]/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedTradeProduct/ram:ApplicableProductCharacteristic[ram:Description = 'cva']
Test expression (assert/@test)
normalize-space(ram:Value) = $CVA-CODES