All error codes › BR-RO-030
BR-RO-030 – Foreign-currency invoice needs RON as VAT currency
Errorroapplies to Romanian e-Factura
What the rule says
If the Invoice currency code (BT-5) is other than RON, then the VAT accounting currency code(BT-6) must be RON.
How to fix it
When cbc:DocumentCurrencyCode is not RON, add <cbc:TaxCurrencyCode>RON</cbc:TaxCurrencyCode> and a second cac:TaxTotal holding the VAT amount in RON.
UBL: cbc:TaxCurrencyCode
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:TaxCurrencyCode) = 'RON' and normalize-space(cbc:DocumentCurrencyCode) != 'RON') or (normalize-space(cbc:TaxCurrencyCode) = 'RON' and normalize-space(cbc:DocumentCurrencyCode) = 'RON') or (normalize-space(cbc:TaxCurrencyCode) != 'RON' and normalize-space(cbc:DocumentCurrencyCode) = 'RON') or (not(exists (cbc:TaxCurrencyCode)) and normalize-space(cbc:DocumentCurrencyCode) = 'RON')
Related rules
BR-RO-001Wrong CIUS-RO specification identifierBR-RO-010Invoice number has no digitBR-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 invalidBR-RO-111Buyer county code invalid