All error codes › BR-DEC-RO-15
BR-DEC-RO-15 – Too many decimals
Errorroapplies to Romanian e-Factura
What the rule says
The allowed maximum number of decimals for the Invoice total VAT amount in accounting currency (BT-111) is 2.
How to fix it
Round the amount to at most 2 decimals.
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:CreditNote
Test (XPath):
(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:TaxCurrencyCode] and (string-length(substring-after(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:TaxCurrencyCode],'.'))<=2)) or (not(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:TaxCurrencyCode]))
Related rules
BR-DEC-RO-01Too many decimalsBR-DEC-RO-02Too many decimalsBR-DEC-RO-05Too many decimalsBR-DEC-RO-06Too many decimalsBR-DEC-RO-09Too many decimalsBR-DEC-RO-10Too many decimalsBR-DEC-RO-11Too many decimalsBR-DEC-RO-12Too many decimalsBR-DEC-RO-13Too many decimalsBR-DEC-RO-14Too many decimalsBR-DEC-RO-16Too many decimalsBR-DEC-RO-17Too many decimals