E-invoice rule explained · EN 16931
BR-CO-15: Total with VAT does not equal total without VAT plus VAT
Official message
Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).
- Severity
- Error (the invoice is rejected)
- Checked in
- UBL, CII
- Business terms
- BT-112, BT-109, BT-110
What does BR-CO-15 mean?
The invoice total with VAT (BT-112) must equal the total without VAT (BT-109) plus the total VAT amount (BT-110), rounded to two decimals; for example 145.00 + 27.55 = 172.55. In UBL the test also needs exactly one tax total amount whose currencyID is the invoice currency, so a missing or duplicated one fails too. In CII the rule also passes when BT-112 simply equals BT-109.
Usual causes
- The total with VAT was computed from unrounded amounts or before a last change to the VAT.
- In UBL, the VAT total's currencyID differs from cbc:DocumentCurrencyCode, or two cac:TaxTotal elements both carry an amount in the invoice currency.
- The prepaid amount or a rounding amount was subtracted from BT-112 instead of from the amount due (BT-115).
How do I fix BR-CO-15?
- Compute BT-112 as BT-109 + BT-110 (145.00 + 27.55 = 172.55).
- In UBL, give exactly one cac:TaxTotal/cbc:TaxAmount the currencyID of the invoice currency; a second tax total in another accounting currency is fine.
- Leave prepayments and rounding to BT-113, BT-114 and the amount due.
Corrected XML (minimal example we wrote)
UBL
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode> <cac:TaxTotal> <cbc:TaxAmount currencyID="EUR">27.55</cbc:TaxAmount> <cac:TaxSubtotal> <cbc:TaxableAmount currencyID="EUR">145.00</cbc:TaxableAmount> <cbc:TaxAmount currencyID="EUR">27.55</cbc:TaxAmount> <cac:TaxCategory> <cbc:ID>S</cbc:ID> <cbc:Percent>19</cbc:Percent> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal></cac:TaxTotal><cac:LegalMonetaryTotal> <cbc:LineExtensionAmount currencyID="EUR">145.00</cbc:LineExtensionAmount> <cbc:TaxExclusiveAmount currencyID="EUR">145.00</cbc:TaxExclusiveAmount> <cbc:TaxInclusiveAmount currencyID="EUR">172.55</cbc:TaxInclusiveAmount> <cbc:PayableAmount currencyID="EUR">172.55</cbc:PayableAmount> </cac:LegalMonetaryTotal>
CII
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:LineTotalAmount>145.00</ram:LineTotalAmount> <ram:TaxBasisTotalAmount>145.00</ram:TaxBasisTotalAmount> <ram:TaxTotalAmount currencyID="EUR">27.55</ram:TaxTotalAmount> <ram:GrandTotalAmount>172.55</ram:GrandTotalAmount> <ram:DuePayableAmount>172.55</ram:DuePayableAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Example values only. Put the elements in place of, or beside, what your file has; element order matters in both syntaxes.
Check your file for free
The free checker runs the official EN 16931, XRechnung and Peppol rules in your browser. Your file is not uploaded.
In development — early access
Fix-and-explain for accountants and invoicing teams
A paid service that explains every failed rule in plain German, French, Dutch or English and proposes a corrected file is in development. Early access
Source
Rule id and official message from the CEN/TC 434 EN 16931 validation artefacts, validation-1.3.17 (EUPL-1.2), compiled from upstream commit 6e35e0a. The explanation, causes, fix and XML on this page are our own, not the rule publisher's. CEN/TC 434 EN 16931 validation artefacts validation-1.3.17