# BR-CO-06 Document charge reason and code must agree

The document level charge reason code (BT-105) and the document level charge reason (BT-104) shall indicate the same type of charge.

## Problem Description

The document level charge reason code (BT-105) and the document level charge reason (BT-104) shall indicate the same type of charge.

> **ERROR**: XRechnung 3.0

## Context and Significance

This EN16931 core rule keeps the human-readable and coded charge descriptions semantically consistent so downstream systems interpret the surcharge the same way.

## Solution

Align the free-text reason (BT-104) with the coded reason (BT-105) so both describe the same charge, e.g. a freight code with a freight description.

- validate
- convert

## Valid Examples

- BT-105 = FC (Freight) with BT-104 = "Freight charge"

## Invalid Examples

- BT-105 = FC (Freight) with BT-104 = "Early payment discount"

## Code Examples

### Valid XML
```
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  <cbc:AllowanceChargeReasonCode>FC</cbc:AllowanceChargeReasonCode>
  <cbc:AllowanceChargeReason>Freight charge</cbc:AllowanceChargeReason>
  <cbc:Amount currencyID="EUR">15.00</cbc:Amount>
</cac:AllowanceCharge>
```

### Invalid XML
```
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  <cbc:AllowanceChargeReasonCode>FC</cbc:AllowanceChargeReasonCode>
  <cbc:AllowanceChargeReason>Early payment discount</cbc:AllowanceChargeReason>
  <cbc:Amount currencyID="EUR">15.00</cbc:Amount>
</cac:AllowanceCharge>
```

## Affected Fields

- [BT-104 Document level charge reason](/resources/xrechnung/bt-104-document-level-charge-reason)
- [BT-105 Document level charge reason code](/resources/xrechnung/bt-105-document-level-charge-reason-code)

## Related Rules

- [BR-CO-05](/resources/kosit-validator-errors/br-co-05-allowance-reason-code-match)
- [BR-CO-22](/resources/kosit-validator-errors/br-co-22-document-charge-reason-required)

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