# BR-CO-11 Sum of document-level allowances must equal the total of all allowance amounts

The Sum of allowances on document level (BT-107) must equal the arithmetic sum of every Document level allowance amount (BT-92).

## Problem Description

> **ERROR**: EN 16931 calculation and consistency rule (BR-CO)

> **Where BR-CO-11 is checked**
>
> A validator checks an e-invoice in stages. First the file must be well-formed XML that matches the UBL or CII schema (XSD). Then the EN 16931 business rules run: BR core rules, BR-CO calculations, BR-CL code lists, BR-DEC decimals and VAT-category rules such as BR-S. Next come the national or network rules that BT-24 selects: BR-DE for XRechnung, PEPPOL-EN16931 for Peppol BIS Billing. The report lists every failed rule: one error means reject, warnings alone still mean accept. BR-CO-11: EN 16931 calculation rule, reported in the stage “EN 16931 rules”.

## Context and Significance

BT-107 must equal the exact sum of all document level allowance amounts (BT-92); there is no tolerance. If allowances exist and BT-107 is missing, the rule also fails. A wrong BT-107 usually also makes the invoice total without VAT wrong (BR-CO-13). A typical cause is a discount that is deducted in the totals but not exported as a separate document level allowance (BG-20), or an allowance added after BT-107 was calculated.

## Solution

Recompute BT-107 as the sum of all BT-92 amounts. UBL: cac:LegalMonetaryTotal/cbc:AllowanceTotalAmount = sum of the document level cac:AllowanceCharge/cbc:Amount with cbc:ChargeIndicator = false; CII: ram:AllowanceTotalAmount. If there is no document level allowance, omit BT-107 or set it to 0.00.

- [Validate XML](/en/xrechnung-validator?source=resource&rule=BR-CO-11)
- [Convert invoice](/en/pdf-to-xrechnung?source=resource&rule=BR-CO-11)

## Valid Examples

- Two BT-92 allowances of 5.00 and 10.00 yield BT-107 = 15.00
- No document-level allowances and BT-107 = 0.00 (or absent)

## Invalid Examples

- BT-107 = 10.00 but the only BT-92 in the document is 15.00
- BT-107 missing while BT-92 entries exist

## Affected Fields

- [BT-107 Sum of allowances on document level](/resources/xrechnung/bt-107-sum-of-allowances-on-document-level)
- [BT-92 Document level allowance amount](/resources/xrechnung/bt-92-document-level-allowance-amount)

## Related Rules

- [BR-CO-10](/resources/kosit-validator-errors/br-co-10-sum-of-line-net-amounts-must-equal-line-total)
- [BR-CO-13](/resources/kosit-validator-errors/br-co-13-invoice-total-without-vat-must-match-totals-chain)

## Validation Tools

- [Official KoSIT Validator](https://github.com/itplr-kosit/validator): Run the official KoSIT validator with the XRechnung configuration to check EN 16931 and XRechnung rules.
- [Convert PDF to XRechnung](/pdf-to-xrechnung): Find validation errors during conversion and review each correction.

## Related Resources

- [Official Specification](https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [All validation errors](/resources/kosit-validator-errors): Overview of the EN 16931, XRechnung and Peppol validation rules explained here.
