BR-DE-CVD-01
Das Element … "Contract reference" (BT-12) 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:ContractDocumentReference/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:ContractReferencedDocument/ram:IssuerAssignedID[boolean(normalize-space(.))]
Checked with XRechnung 3.0 Invoice (CII)