BR-DE-CVD-02
XRechnung 2.6.0 · CII
Original rule text
[BR-DE-CVD-02] Das Element "Tender or lot reference" (BT-17) muss übermittelt werden.
ram:AdditionalReferencedDocument[normalize-space(ram:TypeCode) = '50' and normalize-space(ram:IssuerAssignedID)]What this rule requires
This fatal XRechnung rule requires that a CVD invoice or credit note includes the element "Tender or lot reference" (BT-17). In UBL, at least one cac:OriginatorDocumentReference/cbc:ID must exist with a value that is not empty or only whitespace. In CII, at least one ram:AdditionalReferencedDocument must have ram:TypeCode equal to '50' and a ram:IssuerAssignedID that is not empty or only whitespace. A document fails when no such reference or ID is present.
How to fix
Add the tender or lot reference (BT-17) to the document. In UBL, include cac:OriginatorDocumentReference/cbc:ID with a non-empty value. In CII, include ram:AdditionalReferencedDocument with ram:TypeCode set to '50' and ram:IssuerAssignedID containing the reference. If the field already exists, check that its ID is not empty or only whitespace.
Guidance on this rule. The original text above is authoritative.