e-Factura validator

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

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(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