BR-DE-CVD-02
Das Element … "Tender or lot reference" (BT-17) muss übermittelt werden.
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:OriginatorDocumentReference/cbc:ID[boolean(normalize-space(.))]
Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)
/rsm:CrossIndustryInvoice[$isCVD]/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement
ram:AdditionalReferencedDocument[normalize-space(ram:TypeCode) = '50' and normalize-space(ram:IssuerAssignedID)]
Checked with XRechnung 3.0 Invoice (CII)