HomeError code lexicon › BR-CO-11
BR-CO-11 Field BT-107 Calculation and consistency rules (BR-CO)

Fix BR-CO-11: Sum of allowances (BT-107) does not add up

[BR-CO-11]-Sum of allowances on document level (BT-107) = Σ Document level allowance amount (BT-92).

BR-CO-11 in your own invoice? Upload the file and find every error in seconds.

What does BR-CO-11 mean?

The stated sum of allowances on document level must equal the sum of the individual allowance amounts.

Common causes of BR-CO-11

How to fix BR-CO-11

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-107 along this XPath://ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:AllowanceTotalAmount
  2. Apply the fix. The sum of allowances on document level (BT-107) must equal the sum of all individual allowance amounts (BT-92): BT-107 = sum of BT-92. Correct ram:AllowanceTotalAmount so that it maps exactly to the sum of all ram:ActualAmount from the document level allowances (ChargeIndicator=false). Usually the total BT-107 is wrong or one allowance was not counted.
  3. Validate again. Save the file and validate it again to check that BR-CO-11 is no longer reported.
Concrete fix

The sum of allowances on document level (BT-107) must equal the sum of all individual allowance amounts (BT-92): BT-107 = sum of BT-92. Correct ram:AllowanceTotalAmount so that it maps exactly to the sum of all ram:ActualAmount from the document level allowances (ChargeIndicator=false). Usually the total BT-107 is wrong or one allowance was not counted.

XPath//ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:AllowanceTotalAmount

Before / after: the XML example

This is the spot in question before and after the fix (Cross Industry Invoice, ZUGFeRD/Factur-X).

Wrong
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator><udt:Indicator>false</udt:Indicator></ram:ChargeIndicator>
  <ram:ActualAmount>10.00</ram:ActualAmount>
</ram:SpecifiedTradeAllowanceCharge>
<ram:AllowanceTotalAmount>0.00</ram:AllowanceTotalAmount>
Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator><udt:Indicator>false</udt:Indicator></ram:ChargeIndicator>
  <ram:ActualAmount>10.00</ram:ActualAmount>
</ram:SpecifiedTradeAllowanceCharge>
<ram:AllowanceTotalAmount>10.00</ram:AllowanceTotalAmount>

Frequent questions about BR-CO-11

Do line level allowances count towards BT-107?
No. BT-107 sums only document level allowances (BT-92). Line level discounts (BT-136) already feed into the invoice line net amount and are not captured again here.
What do I do about a one-cent difference?
Round every individual amount to two decimal places and only then build the sum. The total BT-107 must match the sum of the rounded individual amounts exactly.

Related error codes

Check BR-CO-11 automatically

Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online – upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.

Find every error automatically instead of searching by hand

Upload your ZUGFeRD, Factur-X or XRechnung file – you get every violation back with rule ID, field, fix and XPath.

Validate online for free
Check invoice