# BR-O-13 Not-subject-to-VAT invoice must have no non-O document allowance

An invoice that contains a VAT breakdown (BG-23) with VAT category code (BT-118) "Not subject to VAT" (O) shall not contain a document level allowance (BG-20) whose Document level allowance VAT category code (BT-95) is not "Not subject to VAT".

## Problem Description

An invoice that contains a VAT breakdown (BG-23) with VAT category code (BT-118) "Not subject to VAT" (O) shall not contain a document level allowance (BG-20) whose Document level allowance VAT category code (BT-95) is not "Not subject to VAT".

> **ERROR**: XRechnung 3.0

## Context and Significance

A not-subject-to-VAT invoice is entirely outside the scope of VAT, so its document allowances must all use category O.

## Solution

Give every document level allowance category O (BT-95 = O), or remove the non-O allowances.

- validate
- convert

## Valid Examples

- O breakdown present and every document allowance has BT-95 = O

## Invalid Examples

- O breakdown present but a document allowance has BT-95 = Z

## Code Examples

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

### Invalid XML
```
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  <cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  <cac:TaxCategory>
    <cbc:ID>Z</cbc:ID>
    <cbc:Percent>0</cbc:Percent>
  </cac:TaxCategory>
</cac:AllowanceCharge>
```

## Affected Fields

- [BT-118 VAT category code](/resources/xrechnung/bt-118-vat-category-code)
- [BT-95 Document level allowance VAT category code](/resources/xrechnung/bt-95-document-level-allowance-vat-category-code)

## Related Rules

- [BR-O-01](/resources/kosit-validator-errors/br-o-01-not-subject-vat-breakdown-required)
- [BR-O-11](/resources/kosit-validator-errors/br-o-11-forbids-other-vat-breakdowns)
- [BR-O-14](/resources/kosit-validator-errors/br-o-14-forbids-non-o-charges)

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