# BR-DEC-19 VAT category taxable amount must not exceed two decimal places

The BT-116 VAT category taxable amount is limited to a maximum of two decimal places. Any value carrying three or more fractional digits fails EN16931 validation.

## Problem Description

The BT-116 VAT category taxable amount is limited to a maximum of two decimal places. Any value carrying three or more fractional digits fails EN16931 validation.

> **ERROR**: XRechnung 3.0

## Context and Significance

This is an EN16931 core decimal-precision constraint enforced by KoSIT: every monetary amount in the invoice must be expressed with no more than two decimals.

## Solution

Round BT-116 to two decimal places before serialising the amount, and apply the same rounding used in the BR-CO total and sum calculations so the invoice still reconciles.

- validate
- convert

## Valid Examples

- BT-116 = 900.00 — two decimals accepted

## Invalid Examples

- BT-116 = 900.000 — three decimals rejected

## Code Examples

### Valid XML
```
<cac:TaxTotal>
  <cac:TaxSubtotal>
    <cbc:TaxableAmount currencyID="EUR">900.00</cbc:TaxableAmount>
    <cbc:TaxAmount currencyID="EUR">171.00</cbc:TaxAmount>
  </cac:TaxSubtotal>
</cac:TaxTotal>
```

### Invalid XML
```
<cac:TaxTotal>
  <cac:TaxSubtotal>
    <cbc:TaxableAmount currencyID="EUR">900.000</cbc:TaxableAmount>
    <cbc:TaxAmount currencyID="EUR">171.00</cbc:TaxAmount>
  </cac:TaxSubtotal>
</cac:TaxTotal>
```

## Affected Fields

- [BT-116 VAT category taxable amount](/resources/xrechnung/bt-116-vat-category-taxable-amount)

## Related Rules

- [BR-CO-17](/resources/kosit-validator-errors/br-co-17-vat-category-tax-amount-must-match-base-times-rate)
- [BR-DEC-20](/resources/kosit-validator-errors/br-dec-20-vat-category-tax-amount-max-two-decimals)

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