> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/portuguese/infor-integration-and-configuration/exporting-to-infor/ln/example-export-ln/configuring-the-default-tax-country-for-export-ln.md).

# Configurar o País de Imposto Padrão na Exportação para o LN

### Visão geral

O país de imposto (Tax Country) padrão da exportação é definido como **DE (Alemanha)** para evitar erros de exportação. Ele pode ser alterado no arquivo de mapeamento de uma destas formas:

* Definindo um valor estático diferente.
* Mapeando-o dinamicamente para um campo do DocBits.

<mark style="color:red;">**Observação:**</mark> se o campo especificado não existir ou estiver vazio, a exportação volta a usar **DE**.

### Etapas para alterar o país de imposto

#### 1. Obter o arquivo de mapeamento

* Acesse **DocBits → Configurações → Processamento de documentos → Exportação**.
* Abra a configuração de exportação que deseja alterar.
* Clique em **Download** para obter o arquivo de mapeamento.\\

  <figure><img src="https://4193417932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuAz1Yhpnxw8Gd9kza0ch%2Fuploads%2Fgit-blob-96de024ea0d38601af899cc4b99931a024687074%2FiScreen%20Shoter%20-%20Google%20Chrome%20-%20250220120028.jpg?alt=media" alt=""><figcaption></figcaption></figure>
* Abra o arquivo em um editor de texto.

#### 2. Alterar o arquivo de mapeamento

Escolha uma das duas opções abaixo e aplique as alterações necessárias.

**Opção 1: valor estático**

Para definir um valor estático para o país de imposto, siga estas etapas:

1. Defina um novo campo estático adicionando `,TaxCountry` à linha `StaticFields`.

   ```properties
   StaticFields=FinancialCompany...,TaxCountry
   ```
2. Defina o código do país adicionando a linha a seguir:

   ```properties
   SF_TaxCountry=CountryCode
   ```

   Substitua `CountryCode` pelo código real do país, por exemplo, `ES` para a Espanha ou `DE` para a Alemanha:

   ```properties
   SF_TaxCountry=ES
   ```

**Exemplo:**

```properties
StaticFields=FinancialCompany,TaxCountry
SF_TaxCountry=FR
```

<figure><img src="https://4193417932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuAz1Yhpnxw8Gd9kza0ch%2Fuploads%2Fgit-blob-d9fd1d036ca76cad799a1d1e14a44221869a146a%2Fimage%20(415).png?alt=media" alt=""><figcaption></figcaption></figure>

**Opção 2: mapeamento dinâmico a partir de um campo do DocBits**

Para mapear dinamicamente o país de imposto a partir de um campo do DocBits:

1. Adicione `,TaxCountry` à linha `HeaderFields`:

   ```properties
   HeaderFields=SupplierCode,...,TaxCountry
   ```
2. Defina o mapeamento de campo correspondente:

   ```properties
   HF_TaxCountry=DocBits_Field_name
   ```

   Substitua `DocBits_Field_Name` pelo nome real do campo no DocBits:

   ```properties
   HF_TaxCountry=tax_country_1
   ```

**Exemplo:**

```properties
HeaderFields=SupplierCode,TaxCountry
HF_TaxCountry=tax_country_1
```

<figure><img src="https://4193417932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuAz1Yhpnxw8Gd9kza0ch%2Fuploads%2Fgit-blob-bd431c92cc72d4c2a885cc9adb412b03a0b5e9f9%2Fimage%20(411).png?alt=media" alt=""><figcaption></figcaption></figure>

### Resumo

* Se o país de imposto **não estiver definido ou o campo estiver vazio**, o valor padrão é **DE**.
* **Use um valor estático** se o país de imposto for o mesmo em todas as exportações.
* **Use um mapeamento de campo dinâmico** se o país de imposto variar de documento para documento.

Seguindo essas etapas, você pode alterar o mapeamento do país de imposto de acordo com as suas necessidades.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/portuguese/infor-integration-and-configuration/exporting-to-infor/ln/example-export-ln/configuring-the-default-tax-country-for-export-ln.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
