# BR-O-07 Category O document charge must not carry a VAT rate

A document level charge (BG-21) whose VAT category code (BT-102) is "Not subject to VAT" (O) shall not contain a Document level charge VAT rate (BT-103).

## Problem Description

A document level charge (BG-21) whose VAT category code (BT-102) is "Not subject to VAT" (O) shall not contain a Document level charge VAT rate (BT-103).

> **ERROR**: XRechnung 3.0

## Context and Significance

Category O amounts are outside the scope of VAT, so a rate on the charge would be meaningless and is forbidden.

## Solution

Delete cbc:Percent (BT-103) from the charge cac:TaxCategory; category O carries no rate.

- validate
- convert

## Valid Examples

- Document charge with cac:TaxCategory/cbc:ID = O and no cbc:Percent

## Invalid Examples

- Document charge with cbc:ID = O but cbc:Percent = 0 present (BT-103)

## Code Examples

### Valid XML
```
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  <cbc:Amount currencyID="EUR">15.00</cbc:Amount>
  <cac:TaxCategory>
    <cbc:ID>O</cbc:ID>
  </cac:TaxCategory>
</cac:AllowanceCharge>
```

### Invalid XML
```
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  <cbc:Amount currencyID="EUR">15.00</cbc:Amount>
  <cac:TaxCategory>
    <cbc:ID>O</cbc:ID>
    <cbc:Percent>0</cbc:Percent>
  </cac:TaxCategory>
</cac:AllowanceCharge>
```

## Affected Fields

- [BT-102 Document level charge VAT category code](/resources/xrechnung/bt-102-document-level-charge-vat-category-code)
- [BT-103 Document level charge VAT rate](/resources/xrechnung/bt-103-document-level-charge-vat-rate)

## Related Rules

- [BR-O-01](/resources/kosit-validator-errors/br-o-01-not-subject-vat-breakdown-required)
- [BR-O-05](/resources/kosit-validator-errors/br-o-05-line-forbids-vat-rate)
- [BR-O-06](/resources/kosit-validator-errors/br-o-06-allowance-forbids-vat-rate)

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