# BR-IC-08 Intra-community taxable amount must equal the net sum

In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply", the VAT category taxable amount (BT-116) shall equal the sum of invoice line net amounts (BT-131) minus document level allowance amounts (BT-92) plus document level charge amounts (BT-99) whose VAT category codes (BT-151, BT-95, BT-102) are "Intra-community supply".

## Problem Description

In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply", the VAT category taxable amount (BT-116) shall equal the sum of invoice line net amounts (BT-131) minus document level allowance amounts (BT-92) plus document level charge amounts (BT-99) whose VAT category codes (BT-151, BT-95, BT-102) are "Intra-community supply".

> **ERROR**: XRechnung 3.0

## Context and Significance

This calculation rule ties the intra-community taxable base to the underlying lines so the tax-exempt amount reported to authorities is arithmetically correct.

## Solution

Recompute BT-116 for the K breakdown as Σ BT-131 − Σ BT-92 + Σ BT-99 over all K-category lines, allowances and charges, and write that value into TaxableAmount.

- validate
- convert

## Valid Examples

- Two K lines of 600.00 and 400.00 with no adjustments give BT-116 = 1000.00

## Invalid Examples

- K lines summing to 1000.00 but BT-116 declared as 950.00

## Code Examples

### Valid XML
```
<cac:TaxSubtotal>
  <cbc:TaxableAmount currencyID="EUR">1000.00</cbc:TaxableAmount>
  <cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount>
  <cac:TaxCategory>
    <cbc:ID>K</cbc:ID>
    <cbc:Percent>0</cbc:Percent>
  </cac:TaxCategory>
</cac:TaxSubtotal>
<!-- line net amounts (BT-131) for category K sum to 1000.00 -->
```

### Invalid XML
```
<cac:TaxSubtotal>
  <cbc:TaxableAmount currencyID="EUR">950.00</cbc:TaxableAmount>
  <cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount>
  <cac:TaxCategory>
    <cbc:ID>K</cbc:ID>
    <cbc:Percent>0</cbc:Percent>
  </cac:TaxCategory>
</cac:TaxSubtotal>
<!-- line net amounts (BT-131) for category K actually sum to 1000.00 -->
```

## 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-118 VAT category code](/resources/xrechnung/bt-118-vat-category-code)

## Related Rules

- [BR-IC-09](/resources/kosit-validator-errors/br-ic-09-vat-amount-must-be-zero)
- [BR-IC-01](/resources/kosit-validator-errors/br-ic-01-intra-community-vat-breakdown-required)
- [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.
