# BR-22 Each invoice line must have an invoiced quantity

Every invoice line (BG-25) must include the invoiced quantity (BT-129).

## Problem Description

Every invoice line (BG-25) must include the invoiced quantity (BT-129).

> **ERROR**: XRechnung 3.0

## Context and Significance

Quantity is needed for BT-131 and Peppol line amount rules such as PEPPOL-EN16931-R120.

## Solution

Add BT-129 to every line and keep it consistent with the line net amount calculation.

- validate
- convert

## Valid Examples

- BT-129 = 2
- BT-129 = 1.5 for service hours

## Invalid Examples

- Line exists but quantity is blank
- Quantity visible in PDF but not mapped to XML

## Technical Details

### Affected Fields
BT-129 Invoiced quantity

## Related Rules

- [BR-23](/resources/kosit-validator-errors/br-23-invoice-line-unit-code-must-be-present)
- [BR-24](/resources/kosit-validator-errors/br-24-invoice-line-net-amount-must-be-present)
- [PEPPOL-EN16931-R120](/resources/kosit-validator-errors/peppol-en16931-r120-line-net-amount-formula)

## 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.
