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 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.
(/ubl:Invoice | /cn:CreditNote)[$isCVD]
(cac:InvoiceLine/cac:Item | cac:CreditNoteLine/cac:Item)[cac:CommodityClassification/cbc:ItemClassificationCode/@listID = 'CVD' and cac:AdditionalItemProperty/cbc:Name = 'cva']
Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)
/rsm:CrossIndustryInvoice[$isCVD]/rsm:SupplyChainTradeTransaction
ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct[ram:DesignatedProductClassification/ram:ClassCode/@listID = 'CVD' and ram:ApplicableProductCharacteristic/ram:Description = 'cva']
Checked with XRechnung 3.0 Invoice (CII)