BR-DE-15
Das Element "Buyer reference" (BT-10) muss übermittelt werden.
Why it fails
- An XRechnung has no
cbc:BuyerReference(ram:BuyerReferencein CII). German public buyers use it for the Leitweg-ID.
How to fix it
Put the buyer's Leitweg-ID, or the reference the buyer gave you, in BT-10.
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
cbc:BuyerReference[boolean(normalize-space(.))]
Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)
/rsm:CrossIndustryInvoice
rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerReference[boolean(normalize-space(.))]
Checked with XRechnung 3.0 Invoice (CII)