# BR-Z-05 Zero-rated line rate must be zero

In an invoice line (BG-25) where the invoiced item VAT category code (BT-151) is "Zero rated", the invoiced item VAT rate (BT-152) shall be 0 (zero).

## Problem Description

In an invoice line (BG-25) where the invoiced item VAT category code (BT-151) is "Zero rated", the invoiced item VAT rate (BT-152) shall be 0 (zero).

> **ERROR**: XRechnung 3.0

## Context and Significance

This EN16931 rule ensures zero-rated (category Z) lines carry a 0 % rate, since category Z denotes a taxable-but-zero-rated supply.

## Solution

Set the invoiced item VAT rate (BT-152) to 0 for category Z lines; use category S with a positive rate if VAT actually applies.

- validate
- convert

## Valid Examples

- Invoice line with BT-151 = Z and BT-152 = 0

## Invalid Examples

- Invoice line with BT-151 = Z but BT-152 = 19

## Code Examples

### Valid XML
```
<cac:InvoiceLine>
  <cac:Item>
    <cac:ClassifiedTaxCategory><cbc:ID>Z</cbc:ID><cbc:Percent>0</cbc:Percent></cac:ClassifiedTaxCategory>
  </cac:Item>
</cac:InvoiceLine>
```

### Invalid XML
```
<cac:InvoiceLine>
  <cac:Item>
    <cac:ClassifiedTaxCategory><cbc:ID>Z</cbc:ID><cbc:Percent>19</cbc:Percent></cac:ClassifiedTaxCategory>
  </cac:Item>
</cac:InvoiceLine>
```

## Affected Fields

- [BT-151 Invoiced item VAT category code](/resources/xrechnung/bt-151-invoice-line-vat-category-code)
- [BT-152 Invoiced item VAT rate](/resources/xrechnung/bt-152-invoice-line-vat-category-rate)

## Related Rules

- [BR-Z-01](/resources/kosit-validator-errors/br-z-01-zero-rated-vat-breakdown-required)
- [BR-Z-06](/resources/kosit-validator-errors/br-z-06-zero-rated-allowance-rate-zero)
- [BR-Z-07](/resources/kosit-validator-errors/br-z-07-zero-rated-charge-rate-zero)

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