e-Factura validator

All error codes › BR-CO-15

BR-CO-15 – Total with VAT is wrong

Erroren16931applies to Romanian e-Factura

What the rule says

Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).

How to fix it

Set it to: total without VAT + total VAT.

UBL: cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount

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):

every $Currency in cbc:DocumentCurrencyCode satisfies (count(cac:TaxTotal/xs:decimal(cbc:TaxAmount[@currencyID=$Currency])) eq 1) and (cac:LegalMonetaryTotal/xs:decimal(cbc:TaxInclusiveAmount) = round( (cac:LegalMonetaryTotal/xs:decimal(cbc:TaxExclusiveAmount) + cac:TaxTotal/xs:decimal(cbc:TaxAmount[@currencyID=$Currency])) * 10 * 10) div 100)

Related rules