# BR-DEC-RO-15

Source: https://xmlvalid.com/rules/BR-DEC-RO-15

> Numarul maxim permis de zecimale pentru Valoarea TVA totala a facturii în moneda de contabilizare (BT-111) este 2. #The allowed maximum number of decimals for the Invoice total VAT amount in accounting currency (BT-111) is 2.

- Level: error
- Rule sets: Romanian RO e-Factura rules (UBL) 1.0.9
- Context: `/ubl:Invoice | cac:CreditNote`
- Test: `(//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]))`

Validate a document against these rules: https://xmlvalid.com/validate
