BR-DE-15

Das Element "Buyer reference" (BT-10) muss übermittelt werden.

error: the document is invalid

Why it fails

  • An XRechnung has no cbc:BuyerReference (ram:BuyerReference in 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.

Context
/ubl:Invoice | /cn:CreditNote
Test
cbc:BuyerReference[boolean(normalize-space(.))]

Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)

Context
/rsm:CrossIndustryInvoice
Test
rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerReference[boolean(normalize-space(.))]

Checked with XRechnung 3.0 Invoice (CII)