# PEPPOL-EN16931-R130 Price base unit code must match invoiced quantity unit

Peppol requires the unit code of price base quantity to be the same as the invoiced quantity unit code.

## Problem Description

Peppol requires the unit code of price base quantity to be the same as the invoiced quantity unit code.

> **ERROR**: XRechnung 3.0

## Context and Significance

Mixed units make unit price math ambiguous and usually appear after ERP exports split price base quantity from invoice quantity.

## Solution

Use the same unit code for BT-130 and the price base quantity, or recalculate pricing to the invoiced unit.

- validate
- convert

## Valid Examples

- BT-130 = HUR and price base quantity unit = HUR

## Invalid Examples

- BT-130 = HUR but price base unit = C62

## Technical Details

### Affected Fields
BT-130 Quantity unit code, BT-149 Item price base quantity

## Related Rules

- [BR-23](/resources/kosit-validator-errors/br-23-invoice-line-unit-code-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.
