# BR-DEC-RO-13

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

> Numarul maxim permis de zecimale pentru Valoarea totala a TVA a facturii (BT-110) este 2. #The allowed maximum number of decimals for the Invoice total VAT amount (BT-110) 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:DocumentCurrencyCode] and (string-length(substring-after(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:DocumentCurrencyCode],'.'))<=2)) or (not(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:DocumentCurrencyCode]))`

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