# BR-O-08 Not-subject-to-VAT taxable amount must equal its line and adjustment sum

In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Not subject to VAT" (O), the VAT category taxable amount (BT-116) shall equal the sum of invoice line net amounts (BT-131) minus the sum of document level allowance amounts (BT-92) plus the sum of document level charge amounts (BT-99) that carry category O.

## Problem Description

In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Not subject to VAT" (O), the VAT category taxable amount (BT-116) shall equal the sum of invoice line net amounts (BT-131) minus the sum of document level allowance amounts (BT-92) plus the sum of document level charge amounts (BT-99) that carry category O.

> **ERROR**: XRechnung 3.0

## Context and Significance

This EN16931 rule keeps the not-subject-to-VAT taxable base consistent with the underlying category-O amounts so the summary is auditable.

## Solution

Compute BT-116 as Σ BT-131 − Σ BT-92 + Σ BT-99 restricted to the category-O lines, allowances and charges, and write it into the O TaxSubtotal TaxableAmount.

- validate
- convert

## Valid Examples

- O lines net 100.00, no O allowances or charges → BT-116 = 100.00

## Invalid Examples

- O lines net 100.00 but BT-116 reported as 90.00

## Code Examples

### Valid XML
```
<cac:TaxSubtotal>
  <cbc:TaxableAmount currencyID="EUR">100.00</cbc:TaxableAmount>
  <cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount>
  <cac:TaxCategory><cbc:ID>O</cbc:ID></cac:TaxCategory>
</cac:TaxSubtotal>
```

### Invalid XML
```
<cac:TaxSubtotal>
  <cbc:TaxableAmount currencyID="EUR">90.00</cbc:TaxableAmount>
  <cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount>
  <cac:TaxCategory><cbc:ID>O</cbc:ID></cac:TaxCategory>
</cac:TaxSubtotal>
```

## Affected Fields

- [BT-116 VAT category taxable amount](/resources/xrechnung/bt-116-vat-category-taxable-amount)
- [BT-131 Invoice line net amount](/resources/xrechnung/bt-131-invoice-line-net-amount)
- [BT-92 Document level allowance amount](/resources/xrechnung/bt-92-document-level-allowance-amount)
- [BT-99 Document level charge amount](/resources/xrechnung/bt-99-document-level-charge-amount)

## Related Rules

- [BR-O-01](/resources/kosit-validator-errors/br-o-01-not-subject-vat-breakdown-required)
- [BR-O-09](/resources/kosit-validator-errors/br-o-09-not-subject-tax-amount-zero)
- [BR-CO-18](/resources/kosit-validator-errors/br-co-18-vat-breakdown-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.
