All error codes › BR-02
BR-02 – Invoice number missing
Erroren16931applies to Romanian e-Factura
What the rule says
An Invoice shall have an Invoice number (BT-1).
How to fix it
Add the invoice number in cbc:ID.
UBL: cbc:ID
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
Context: /ubl:Invoice | /cn:CreditNote
Test (XPath):
normalize-space(cbc:ID) != ''
Related rules
BR-01An Invoice shall have a Specification identifier (BT-24)BR-03An Invoice shall have an Invoice issue date (BT-2)BR-04An Invoice shall have an Invoice type code (BT-3)BR-05Invoice currency missingBR-06Seller name missingBR-07Buyer name missingBR-08Seller address missingBR-09The Seller postal address (BG-5) shall contain a Seller country code (BT-40)BR-10Buyer address missingBR-11The Buyer postal address shall contain a Buyer country code (BT-55)BR-12An Invoice shall have the Sum of Invoice line net amount (BT-106)BR-13An Invoice shall have the Invoice total amount without VAT (BT-109)