BR-DE-CVD-03: CVD invoice without a vehicle line

A CVD XRechnung must contain at least one invoice line whose item classification (BT-158) has scheme CVD and whose item attribute « cva » (BT-160) gives the vehicle’s classification. Below: the message, the cause and the fix.

The message validators print

BR-DE-CVD-03 is a rule of the XRechnung 3.0 rules (xrechnung-schematron 2.6.0 (XRechnung 3.0.2)) for UBL and CII. It is an error (fatal): a validator rejects the invoice.

UBL and CII
[BR-DE-CVD-03] In einer Rechnung muss mindestens eine … INVOICE LINE (BG-25) enthalten sein, in der der Scheme identifier von … "Item classification identifier" (BT-158) den Wert 'CVD' und der … "Item attribute name" (BT-160) den Wert 'cva' enthält.

What it checks

A CVD XRechnung must contain at least one invoice line whose item classification (BT-158) has scheme CVD and whose item attribute « cva » (BT-160) gives the vehicle’s classification.

Why invoices fail it

The vehicle is invoiced as an ordinary line without the CVD classification and attribute.

How to fix it

On the vehicle line add ItemClassificationCode with listID="CVD" (the vehicle category) and the item attribute cva with its value.

No checked example yet

A CVD invoice classifies the vehicle with listID="CVD", which the CEN rule BR-CL-13 (UNTDID 7143 only) rejects: with the published files no CVD invoice passes both rule sets at once, so no valid fix can be shown. The page is not indexed until that is resolved.

The rule as published

Where the rule applies (context) and what must hold (test), unmodified from XRechnung 3.0.2 schematron 2.6.0. An assert fails when its test is false.

Text and test: © KoSIT, Apache License 2.0. Quoted unmodified; the explanations on this page are Veriport’s.

UBL · XRechnung 3.0.2 schematron (UBL) 2.6.0 · assert · error
context: (/ubl:Invoice | /cn:CreditNote)[$isCVD]
test:    (cac:InvoiceLine/cac:Item | cac:CreditNoteLine/cac:Item)[cac:CommodityClassification/cbc:ItemClassificationCode/@listID = 'CVD' and cac:AdditionalItemProperty/cbc:Name = 'cva']
CII · XRechnung 3.0.2 schematron (CII) 2.6.0 · assert · error
context: /rsm:CrossIndustryInvoice[$isCVD]/rsm:SupplyChainTradeTransaction
test:    ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct[ram:DesignatedProductClassification/ram:ClassCode/@listID = 'CVD' and ram:ApplicableProductCharacteristic/ram:Description = 'cva']

Check your own invoice

Drop your XRechnung, ZUGFeRD or Peppol file into a free validator (Peppol BIS, XRechnung, Factur-X): each runs the same rule files and links every finding to its rule page. From your own code, POST /einvoice/validate (reference) returns the same check as JSON, each finding with an explanation field pointing here (5 calls a check, anonymous within the daily allowance).

Sources