e-Factura validator

All error codes › BR-RO-101

BR-RO-101 – Bucharest buyer city must be a sector code

Errorroapplies to Romanian e-Factura

What the rule says

If the Buyer's country Code (BT-55) is RO and the Buyer's country subdivision (BT-54) is RO-B (corresponding to Bucharest Municipality), then the Buyer city (BT-52) must be coded using the code list SECTOR-RO(SECTOR1, SECTOR2, SECTOR3, SECTOR4, SECTOR5, SECTOR6).

How to fix it

With county RO-B (Bucharest) the city must be one of SECTOR1 ... SECTOR6 (no space), not 'Bucuresti'.

UBL: cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName

Check your invoice for free

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(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode) = 'RO' and normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity) = 'RO-B' and not(normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName) = $SECTOR-RO-CODES)

Related rules