Beleq / Validator / KoSIT Error Codes / BR-CO-14
FATAL · BR-CO-14 EN 16931 (v1.3.16) Verified with KoSIT v1.6.3 (0-Error Fix) BT-110BT-117

How to Fix KoSIT Error BR-CO-14: TaxTotalAmount ≠ Sum of CalculatedAmount

KoSIT 1.6.3 rejects invoices where the header TaxTotalAmount (BT-110) does not exactly match the sum of all CalculatedAmount (BT-117) VAT values. This is a fatal error. Fix by rounding all VAT amounts to the cent and recalculating the total.

Official KoSIT v1.6.3 Schematron Message (EN16931 (CII))
[BR-CO-14]-Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117).

1. Why KoSIT Validator v1.6.3 Rejects This Invoice

EN 16931 mandates that the invoice-level VAT total (BT-110) must exactly match the sum of all VAT category amounts (BT-117). The official XPath test in CII compares the TaxTotalAmount with the sum of all CalculatedAmounts. In UBL, the same logic applies to TaxTotal. Even a 0.01 EUR discrepancy triggers a fatal error. This rule ensures mathematical consistency in VAT reporting across all e-invoicing profiles.

CII Context: //ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount[@currencyID=/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode]
CII Schematron Test: . = (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CalculatedAmount)*10*10)div 100)
UBL Context: /ubl:Invoice/cac:TaxTotal | /cn:CreditNote/cac:TaxTotal

2. KoSIT-Verified XML Example: Broken vs. Fixed

✕ Invalid CII XML — Rejected by KoSIT 1.6.3 (BR-CO-14)
  <ram:SpecifiedTradeSettlementHeaderMonetarySummation>
    <ram:LineTotalAmount>270.26</ram:LineTotalAmount>
    <ram:TaxBasisTotalAmount>270.26</ram:TaxBasisTotalAmount>
    <ram:TaxTotalAmount currencyID="EUR">43.85</ram:TaxTotalAmount>
    <ram:GrandTotalAmount>314.10</ram:GrandTotalAmount>
    <ram:TotalPrepaidAmount>314.10</ram:TotalPrepaidAmount>
    <ram:DuePayableAmount>0.00</ram:DuePayableAmount>
  </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
</ram:ApplicableHeaderTradeSettlement>
✓ Fixed CII XML — Passed KoSIT 1.6.3 (0 Errors)
  <ram:SpecifiedTradeSettlementHeaderMonetarySummation>
    <ram:LineTotalAmount>270.26</ram:LineTotalAmount>
    <ram:TaxBasisTotalAmount>270.26</ram:TaxBasisTotalAmount>
    <ram:TaxTotalAmount currencyID="EUR">43.84</ram:TaxTotalAmount>
    <ram:GrandTotalAmount>314.10</ram:GrandTotalAmount>
    <ram:TotalPrepaidAmount>314.10</ram:TotalPrepaidAmount>
    <ram:DuePayableAmount>0.00</ram:DuePayableAmount>
  </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
</ram:ApplicableHeaderTradeSettlement>

In the broken XML, TaxTotalAmount is 43.85 EUR, but the sum of CalculatedAmounts is 43.84 EUR. This 0.01 EUR discrepancy causes the error. The fixed XML corrects TaxTotalAmount to 43.84 EUR, aligning it with the sum of all VAT category amounts and passing KoSIT validation.

3. Step-by-Step Fix Checklist

  1. Step 1: Inspect the TaxTotalAmount (BT-110) in the header and all CalculatedAmount (BT-117) in BG-23 ApplicableTradeTax.
  2. Step 2: Recalculate the sum of all CalculatedAmounts and round to the nearest cent. Adjust the header TaxTotalAmount to match.
  3. Step 3: Re-validate with Beleq's free KoSIT v1.6.3 validator to confirm BR-CO-14 compliance.

4. Common Shopify Store & DATEV Workflow Trigger

German Shopify B2B stores often mix multiple VAT rates (e.g., 19% for hardware, 7% for food). If the invoice header TaxTotalAmount is not precisely the sum of all VAT category CalculatedAmounts, DATEV and KoSIT reject it. Beleq ensures that mixed-VAT invoices are mathematically correct by recalculating and rounding all VAT totals to the cent before embedding the XML into ZUGFeRD or XRechnung.

Guide (DE): Shopify DATEV EXTF Export (SKR03 & SKR04) →

5. Frequently Asked Questions

Can I use rounding rules from the German BMF to fix BR-CO-14?

Yes, the German BMF allows rounding to the nearest cent for VAT calculations. Ensure that the sum of all rounded CalculatedAmounts equals the header TaxTotalAmount.

Does BR-CO-14 apply to ZUGFeRD 2.3 and XRechnung 3.0 differently?

No, BR-CO-14 applies identically to both ZUGFeRD 2.3 and XRechnung 3.0. Both use the same BT-110 and BT-117 fields and must pass the same XPath validation.

Related KoSIT Error Codes

Validate your ZUGFeRD PDF or XRechnung XML free online

Check your hybrid ZUGFeRD PDF or XRechnung XML in under 1 second against the official German KoSIT Validator v1.6.3 — 100% RAM-based on Frankfurt servers with zero retention and no registration.

Open Free KoSIT v1.6.3 Validator → See Beleq for Shopify