BR-02
An Invoice shall have an Invoice number (BT-1).
Why it fails
- The invoice number in
cbc:ID(rsm:ExchangedDocument/ram:IDin 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.
/ubl:Invoice | /cn:CreditNote
normalize-space(cbc:ID) != ''
Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)
/rsm:CrossIndustryInvoice
normalize-space(rsm:ExchangedDocument/ram:ID) != ''
Checked with EN 16931 Invoice (CII)
/ubl:Invoice | /cn:CreditNote
(cbc:ID) !=''
Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)
/rsm:CrossIndustryInvoice
(rsm:ExchangedDocument/ram:ID !='')
Checked with France Factur-X BASIC WL, Factur-X / ZUGFeRD BASIC WL