BR-02

An Invoice shall have an Invoice number (BT-1).

error: the document is invalid warning: reported, still valid Peppol documentation ↗

Why it fails

  • The invoice number in cbc:ID (rsm:ExchangedDocument/ram:ID in CII) is missing or empty.

How to fix it

Give the invoice its number (BT-1), the one the seller's accounting uses to identify it.

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
/rsm:CrossIndustryInvoice
Test
normalize-space(rsm:ExchangedDocument/ram:ID) != ''

Checked with EN 16931 Invoice (CII)

Context
/ubl:Invoice | /cn:CreditNote
Test
(cbc:ID) !=''

Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)

Context
//ubl:Invoice | //cn:CreditNote
Test
exists(cbc:ID)

Checked with Portugal CIUS-PT Invoice (UBL), Portugal CIUS-PT Credit Note (UBL)

Context
/ubl:Invoice | /cn:CreditNote
Test
exists(cbc:ID) and (cbc:ID) !=''

Checked with Saudi Arabia ZATCA Tax Invoice (UBL), Saudi Arabia ZATCA Simplified Tax Invoice (UBL)

Context
/rsm:CrossIndustryInvoice
Test
(rsm:ExchangedDocument/ram:ID !='')

Checked with France Factur-X BASIC WL, Factur-X / ZUGFeRD BASIC WL