> 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/chinese/infor-ji-cheng-yu-pei-zhi/exporting-to-infor/ln/example-export-ln/configuring-the-default-tax-country-for-export-ln.md).

# 为 LN 导出配置默认税务国家/地区

### 概述

导出的默认税务国家/地区设置为 **DE（德国）**，以避免导出错误。您可以通过以下任一方式在映射文件中更改此设置：

* 定义其他静态值。
* 将其动态映射到 DocBits 中的字段。

<mark style="color:red;">**注意：**</mark>如果指定字段不存在或为空，导出时将回退为 **DE**。

### 修改税务国家/地区的步骤

#### 1. 获取映射文件

* 前往 **DocBits → 设置 → 文档处理 → 导出**。
* 打开要修改的导出配置。
* 点击 **下载**以获取映射文件。\\

  <figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-96de024ea0d38601af899cc4b99931a024687074%2FiScreen%20Shoter%20-%20Google%20Chrome%20-%20250220120028.jpg?alt=media" alt=""><figcaption></figcaption></figure>
* 在文本编辑器中打开该文件。

#### 2. 修改映射文件

选择以下两个选项之一，并进行相应修改。

**选项 1：静态值**

若要设置静态税务国家/地区值，请按以下步骤操作：

1. 在 `StaticFields` 行中添加 `,TaxCountry`，以定义新的静态字段。

   ```properties
   StaticFields=FinancialCompany...,TaxCountry
   ```
2. 添加以下行以设置国家/地区代码：

   ```properties
   SF_TaxCountry=CountryCode
   ```

   将 `CountryCode` 替换为实际的国家/地区代码，例如西班牙为 `ES`，德国为 `DE`：

   ```properties
   SF_TaxCountry=ES
   ```

**示例：**

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

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

**选项 2：从 DocBits 字段动态映射**

若要从 DocBits 中的字段动态映射税务国家/地区：

1. 在 `HeaderFields` 行中添加 `,TaxCountry`：

   ```properties
   HeaderFields=SupplierCode,...,TaxCountry
   ```
2. 定义对应的字段映射：

   ```properties
   HF_TaxCountry=DocBits_Field_name
   ```

   将 `DocBits_Field_Name` 替换为 DocBits 中的实际字段名称：

   ```properties
   HF_TaxCountry=tax_country_1
   ```

**示例：**

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

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

### 总结

* 如果**未定义税务国家/地区或字段为空**，则默认使用 **DE**。
* 如果所有导出的税务国家/地区都相同，**请使用静态值**。
* 如果税务国家/地区因文档而异，**请使用动态字段映射**。

按照这些步骤，您即可成功修改税务国家/地区映射，以满足您的需求。


---

# 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/chinese/infor-ji-cheng-yu-pei-zhi/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.
