All error codes › BR-RO-202
BR-RO-202 – If the Delivery to country code (BT-80) is RO and the Delivery to country subdivision…
What the rule says
If the Delivery to country code (BT-80) is RO and the Delivery to country subdivision (BT-79) is "RO-B" (corresponding to Bucharest Municipality), then the Delivery to city(BT-77) must be coded using the code list SECTOR-RO(SECTOR1, SECTOR2, SECTOR3, SECTOR4, SECTOR5, SECTOR6).
How to fix it
Fill in or correct the fields named in the rule (the BT/BG codes tell you which). The test below shows exactly what is checked in the XML. Quickest: validate the invoice to get the exact location and, for amounts, the correct value.
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/cac:Delivery/cac:DeliveryLocation/cac:Address | /ubl:CreditNote/cac:Delivery/cac:DeliveryLocation/cac:Address
Test (XPath):
normalize-space(cac:Country/cbc:IdentificationCode) = 'RO' and normalize-space(cbc:CountrySubentity) = 'RO-B' and not(normalize-space(cbc:CityName) = $SECTOR-RO-CODES)
Related rules
BR-RO-001Wrong CIUS-RO specification identifierBR-RO-010Invoice number has no digitBR-RO-030Foreign-currency invoice needs RON as VAT currencyBR-RO-040VAT point date code not allowedBR-RO-065Seller VAT / tax ID missingBR-RO-081Seller street address missingBR-RO-082Buyer street address missingBR-RO-091Seller city missingBR-RO-092Buyer city missingBR-RO-100Bucharest seller city must be a sector codeBR-RO-101Bucharest buyer city must be a sector codeBR-RO-110Seller county code invalid