# BR-IC-12 Intra-community supply needs a deliver-to country code

In an invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply", the deliver to country code (BT-80) shall not be blank.

## Problem Description

> **ERROR**: EN 16931 VAT category rule

## Context and Significance

The deliver-to country code (BT-80) states the member state to which the goods were shipped, which is needed to check and report the intra-community supply. It does not replace transport evidence. In practice, the error occurs when only the buyer country (BT-55) is filled and the export writes no delivery address (BG-15), for example because the delivery address equals the buyer address.

## Solution

Populate cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode (BT-80) with the destination member state code, e.g. FR.

- [Validate XML](/en/xrechnung-validator?source=resource&rule=BR-IC-12)
- [Convert invoice](/en/pdf-to-xrechnung?source=resource&rule=BR-IC-12)

## Valid Examples

- K invoice with BT-80 = FR (DE seller delivering to France)

## Invalid Examples

- K invoice with a cac:Delivery block but no BT-80 country code

## Code Examples

### Valid XML
```
<cac:Delivery>
  <cac:DeliveryLocation>
    <cac:Address>
      <cac:Country>
        <cbc:IdentificationCode>FR</cbc:IdentificationCode>
      </cac:Country>
    </cac:Address>
  </cac:DeliveryLocation>
</cac:Delivery>
```

### Invalid XML
```
<cac:Delivery>
  <cac:DeliveryLocation>
    <cac:Address>
      <cbc:StreetName>Rue de Rivoli 1</cbc:StreetName>
    </cac:Address>
  </cac:DeliveryLocation>
</cac:Delivery>
```

## Affected Fields

- [BT-80 Deliver to country code](/resources/xrechnung/bt-80-deliver-to-country-code)
- [BT-118 VAT category code](/resources/xrechnung/bt-118-vat-category-code)

## Related Rules

- [BR-IC-11](/resources/kosit-validator-errors/br-ic-11-delivery-date-or-period-required)
- [BR-IC-01](/resources/kosit-validator-errors/br-ic-01-intra-community-vat-breakdown-required)
- [BR-IC-02](/resources/kosit-validator-errors/br-ic-02-line-seller-buyer-vat-id-required)

## Validation Tools

- [Official KoSIT Validator](https://github.com/itplr-kosit/validator): Run the official KoSIT validator with the XRechnung configuration to check EN 16931 and XRechnung rules.
- [Convert PDF to XRechnung](/pdf-to-xrechnung): Find validation errors during conversion and review each correction.

## Related Resources

- [Official Specification](https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [All validation errors](/resources/kosit-validator-errors): Overview of the EN 16931, XRechnung and Peppol validation rules explained here.
