# BR-53 VAT total in accounting currency is required when a VAT currency is set

If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.

## Problem Description

If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.

> **ERROR**: XRechnung 3.0

## Context and Significance

This rule comes from the EN16931 core semantic model enforced by the KoSIT XRechnung 3.0.2 Schematron, ensuring invoices carry the mandatory data needed for automated processing.

## Solution

When cbc:TaxCurrencyCode (BT-6) differs from the document currency, add a second cac:TaxTotal/cbc:TaxAmount expressed in that accounting currency.

- validate
- convert

## Valid Examples

- BT-6 = SEK with BT-111 = 190.00 SEK next to the EUR VAT total

## Invalid Examples

- BT-6 = SEK is set but no BT-111 VAT total in SEK is present

## Code Examples

### Valid XML
```
<cbc:TaxCurrencyCode>SEK</cbc:TaxCurrencyCode>
<cac:TaxTotal>
  <cbc:TaxAmount currencyID="EUR">19.00</cbc:TaxAmount>
</cac:TaxTotal>
<cac:TaxTotal>
  <cbc:TaxAmount currencyID="SEK">190.00</cbc:TaxAmount>
</cac:TaxTotal>
```

### Invalid XML
```
<cbc:TaxCurrencyCode>SEK</cbc:TaxCurrencyCode>
<cac:TaxTotal>
  <cbc:TaxAmount currencyID="EUR">19.00</cbc:TaxAmount>
</cac:TaxTotal>
```

## Affected Fields

- [BT-6 VAT accounting currency code](/resources/xrechnung/bt-6-vat-accounting-currency-code)
- [BT-111 Invoice total VAT amount in accounting currency](/resources/xrechnung/bt-111-invoice-total-vat-amount-in-accounting-currency)

## Related Rules

- [BR-45](/resources/kosit-validator-errors/br-45-vat-breakdown-taxable-amount-required)
- [BR-46](/resources/kosit-validator-errors/br-46-vat-breakdown-tax-amount-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.
