# BR-CO-13 Invoice total without VAT must equal line total minus allowances plus charges

The Invoice total amount without VAT (BT-109) must equal the Sum of invoice line net amount (BT-106) minus the Sum of allowances on document level (BT-107) plus the Sum of charges on document level (BT-108).

## Problem Description

The Invoice total amount without VAT (BT-109) must equal the Sum of invoice line net amount (BT-106) minus the Sum of allowances on document level (BT-107) plus the Sum of charges on document level (BT-108).

> **ERROR**: XRechnung 3.0

## Context and Significance

BR-CO-13 is the central totals-chain rule. If it fails, every downstream rule (BR-CO-15, BR-CO-16) also fails. Real-world rejections most often stem from rounding policies that differ between the line engine and the totals engine.

## Solution

Recompute BT-109 = BT-106 − BT-107 + BT-108 and write the result back into the totals block.

- validate
- convert

## Valid Examples

- BT-106 = 200.00, BT-107 = 10.00, BT-108 = 5.00 → BT-109 = 195.00
- BT-106 = 100.00, no allowances or charges → BT-109 = 100.00

## Invalid Examples

- BT-106 = 200.00, BT-107 = 10.00, BT-108 = 5.00 but BT-109 = 200.00
- BT-109 left equal to BT-106 even though BT-107 > 0

## Technical Details

### Affected Fields
BT-109 Invoice total amount without VAT, BT-106 Sum of invoice line net amount, BT-107 Sum of allowances on document level, BT-108 Sum of charges on document level

## Related Rules

- [BR-CO-10](/resources/kosit-validator-errors/br-co-10-sum-of-line-net-amounts-must-equal-line-total)
- [BR-CO-11](/resources/kosit-validator-errors/br-co-11-sum-of-document-allowances-must-match)
- [BR-CO-15](/resources/kosit-validator-errors/br-co-15-invoice-total-with-vat-must-match)

## Validation Tools

- [Official KoSIT Validator](https://erechnungsvalidator.service-bw.de/): Validate your XRechnung files against all BR-DE rules.
- [Convert PDF to XRechnung](/pdf-to-xrechnung): Automatic validation error fixes when converting.

## Related Resources

- [Official Specification](https://xeinkauf.de/xrechnung/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [Complete Error List](/resources/kosit-validator-errors): Overview of all German XRechnung validation rules.
