How to Fix KoSIT Error BR-CO-15: GrandTotalAmount Mismatch
KoSIT 1.6.3 rejects invoices where GrandTotalAmount (BT-112) does not equal TaxBasisTotalAmount (BT-109) + TaxTotalAmount (BT-110). This is a fatal error. Fix it by ensuring the math is correct and re-validate with Beleq.
1. Why KoSIT Validator v1.6.3 Rejects This Invoice
EN 16931 mandates that the invoice total with VAT (BT-112) must be the sum of the total without VAT (BT-109) and the total VAT amount (BT-110). The XPath test ensures this equality across all currencies. In CII, the XPath checks that the sum of TaxBasisTotalAmount and TaxTotalAmount matches the GrandTotalAmount. In UBL, the same logic applies but with different element names. A mismatch triggers BR-CO-15 as a fatal error.
/rsm:CrossIndustryInvoiceevery $Currency in /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode satisfies ( ( count(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount[@currencyID = $Currency]) = 1 and xs:decimal((/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:GrandTotalAmount)[1]) = round( ( xs:decimal((/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxBasisTotalAmount)[1]) + xs:decimal((/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount[@currencyID = $Currency])[1]) ) * 100 ) div 100 ) or ( xs:decimal((/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:GrandTotalAmount)[1]) = xs:decimal((/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxBasisTotalAmount)[1]) ) )/ubl:Invoice | /cn:CreditNote2. KoSIT-Verified XML Example: Broken vs. Fixed
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:LineTotalAmount>2000.00</ram:LineTotalAmount>
<ram:TaxBasisTotalAmount>2000.00</ram:TaxBasisTotalAmount>
<ram:TaxTotalAmount currencyID="EUR">380.00</ram:TaxTotalAmount>
<ram:GrandTotalAmount>2380.01</ram:GrandTotalAmount>
<ram:DuePayableAmount>2380.00</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
</ram:ApplicableHeaderTradeSettlement>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:LineTotalAmount>2000.00</ram:LineTotalAmount>
<ram:TaxBasisTotalAmount>2000.00</ram:TaxBasisTotalAmount>
<ram:TaxTotalAmount currencyID="EUR">380.00</ram:TaxTotalAmount>
<ram:GrandTotalAmount>2380.00</ram:GrandTotalAmount>
<ram:DuePayableAmount>2380.00</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
</ram:ApplicableHeaderTradeSettlement>
In the broken XML, GrandTotalAmount is 2380.01 while TaxBasisTotalAmount (2000.00) + TaxTotalAmount (380.00) equals 2380.00. The 0.01 discrepancy fails the KoSIT check. The fixed XML corrects GrandTotalAmount to 2380.00, ensuring the sum is accurate and passes validation.
3. Step-by-Step Fix Checklist
- Step 1: Inspect the GrandTotalAmount (BT-112), TaxBasisTotalAmount (BT-109), and TaxTotalAmount (BT-110) in the XML header.
- Step 2: Ensure that GrandTotalAmount equals TaxBasisTotalAmount + TaxTotalAmount. Adjust the value if there is a rounding discrepancy.
- Step 3: Re-validate the invoice using Beleq's free online validator, which runs the official KoSIT Validator v1.6.3.
4. Common Shopify Store & DATEV Workflow Trigger
German Shopify stores often price items VAT-inclusive (Brutto). When generating XRechnung invoices, rounding errors during net amount calculation can create a 0.01 EUR gap. This triggers BR-CO-15. Beleq ensures that Shopify B2B stores generate XRechnung and ZUGFeRD invoices with mathematically correct totals, avoiding this error and ensuring DATEV import compatibility.
5. Frequently Asked Questions
Can BR-CO-15 be ignored if the difference is only 0.01 EUR?
No. KoSIT 1.6.3 treats BR-CO-15 as a fatal error. Even a 0.01 EUR discrepancy will cause the invoice to fail validation and must be corrected.
Does this rule apply to ZUGFeRD 2.3 as well as XRechnung 3.0?
Yes. BR-CO-15 is part of the EN 16931 standard and applies to both ZUGFeRD 2.3 and XRechnung 3.0 profiles.
Related KoSIT Error Codes
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