> 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/infor-integration-and-configuration/exporting-to-infor/ln/export-tax-codes-to-ln.md).

# Export Tax Codes to LN

## **Overview:**

\
This guide will walk you through the setup process to ensure tax codes are correctly exported from DocBits to LN.

## **Single Tax Codes**

### **Step 1: Set Up List of Values**

1. Go to **Settings** -> **Document Processing** -> **List of Values**.

   <figure><img src="/files/c3Blvwl1uoxPz3yoCfSl" alt=""><figcaption></figcaption></figure>
2. Click **New**.

   <figure><img src="/files/j3ByavxZtVpi2xL0Gsp1" alt=""><figcaption></figcaption></figure>
3. Create a list with the name `Tax_Country` and click **Save**.

   <figure><img src="/files/2GuWHYKYnJvwkDwkYaWL" alt="" width="375"><figcaption></figcaption></figure>
4. Create the following three additional lists:

   * `Tax_Code_Full`
   * `Tax_Code_Reduced`
   * `Tax_Code_Free`

   <div align="left"><figure><img src="/files/tGbzOf6rwLmSeRC9oKYf" alt=""><figcaption></figcaption></figure> <figure><img src="/files/ftStCSyu7sQKXBPnHQSN" alt=""><figcaption></figcaption></figure> <figure><img src="/files/rVPAEVXp6fGtkNxx9nFM" alt=""><figcaption></figcaption></figure></div>
5. Click on one of the newly created lists to open it. Then, press the **Add Row** button to add a new row.

   <figure><img src="/files/mNINp5pWB3PZM3SyTQVH" alt=""><figcaption></figcaption></figure>
6. Enter the desired respective values from **LN** and press **Save** to save the changes.

   * If you have multiple values, you can click **Add More Values** to add them.

   <div align="left"><figure><img src="/files/PvkCCb2JkZGh6vceHCkI" alt=""><figcaption></figcaption></figure> <figure><img src="/files/3h1ppG3bDrw0uM38uSc9" alt=""><figcaption></figcaption></figure></div>

   * **NOTE:** You can find the Tax Codes in LN under: **Common** → **Taxation** → **Master Data** → **Tax Codes** → **Tax Codes by Country**

   <figure><img src="/files/E76euwXtOmycY1PSunX5" alt=""><figcaption></figcaption></figure>

### **Step 2: Add Fields in DocBits**

1. Navigate to **Settings** -> **Global Settings** -> **Document Types**.

   <figure><img src="/files/hJ3y48ICUBUto9vrArHc" alt=""><figcaption></figcaption></figure>
2. Choose the **Fields** menu corresponding to the Document Type where you wish to add the fields.

   <figure><img src="/files/nTtNOD8HffvDrws4gUiw" alt=""><figcaption></figcaption></figure>
3. Under **VAT & Amounts**, create six new fields as follows:

   <figure><img src="/files/VBsmJENu3ajBdPbGhxqQ" alt=""><figcaption></figcaption></figure>

<table data-header-hidden><thead><tr><th width="306"></th><th width="139"></th><th width="119"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Title</strong></td><td><strong>Field Type</strong></td><td><strong>List of Values</strong></td></tr><tr><td><code>tax_country</code></td><td>Tax Country</td><td>Dropdown</td><td>Tax_Country</td></tr><tr><td><code>tax_country_2</code></td><td>Tax Country Reduced</td><td>Dropdown</td><td>Tax_Country</td></tr><tr><td><code>tax_country_3</code></td><td>Tax Country Free</td><td>Dropdown</td><td>Tax_Country</td></tr><tr><td><code>tax_code_without_country</code></td><td>Tax Code</td><td>Dropdown</td><td>Tax_Code_Full</td></tr><tr><td><code>tax_code_without_country_2</code></td><td>Tax Code Reduced</td><td>Dropdown</td><td>Tax_Code_Reduced</td></tr><tr><td><code>tax_code_without_country_3</code></td><td>Tax Code Free</td><td>Dropdown</td><td>Tax_Code_Free</td></tr></tbody></table>

<div><figure><img src="/files/rIIUkrCXB1TCcLs7ED7c" alt=""><figcaption></figcaption></figure> <figure><img src="/files/ok5ZIdreX4qg1DESy3mF" alt=""><figcaption></figcaption></figure> <figure><img src="/files/KkfkBXBLhsWgKJJ2mgDx" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="/files/0AVTYaWuQ4BEY5oYAs6u" alt=""><figcaption></figcaption></figure> <figure><img src="/files/VPqN0nfbEFQVQ6tWpKlh" alt=""><figcaption></figcaption></figure> <figure><img src="/files/D3pg19ivTYaeqa4SCwfq" alt=""><figcaption></figcaption></figure></div>

4. After saving each field, click on **Save Settings** to apply the changes.

   <figure><img src="/files/I0eO3GiofU3YWZI1aKrj" alt=""><figcaption></figcaption></figure>

### **Step 3: Edit Layout**

1. Go to **Settings** -> **Global Settings** -> **Document Types**.

   <figure><img src="/files/hJ3y48ICUBUto9vrArHc" alt=""><figcaption></figcaption></figure>
2. Open the **Edit Layout** menu for the Document Type you want to edit.

   <figure><img src="/files/C8Rt3LmwzboPvJgX3rsJ" alt=""><figcaption></figcaption></figure>
3. Select the appropriate **Document Origin** for which you want to apply the Tax Codes

   <figure><img src="/files/ufjkG1IHTpcWq7db88TQ" alt=""><figcaption></figcaption></figure>
4. Scroll down to the **Tax Details** section.

   <figure><img src="/files/rclPM7h6xeqMfBtHHqG7" alt=""><figcaption></figcaption></figure>
5. Expand the **Form Elements** dropdown menu.
6. In the **Tax Details** section, use the **Horizontal Separator Tool**. Drag and drop it between the sub-sections within the tax section to clearly separate them and reduce confusion.

   <figure><img src="/files/oh03dWvvsQZxNB2e01Zv" alt=""><figcaption></figcaption></figure>
7. Expand the **Form Fields** dropdown menu.
8. Search for **Tax Country** and drag and drop the field into its respective area.

   <figure><img src="/files/GPceOCegE4Q63EodI3tq" alt=""><figcaption></figcaption></figure>
9. Search for **Tax Code** and drag and drop the field into its corresponding area.

   <figure><img src="/files/xAZHnrUPD6QEHbeRmua5" alt=""><figcaption></figcaption></figure>
10. Save the template.

    <figure><img src="/files/eyCTW4C51fV1TKMJjpw3" alt=""><figcaption></figcaption></figure>

### Step 4: Verify that Everything Worked

After uploading a new document into DocBits with the correct document settings selected, you should now be able to select the tax codes you added to the lists in Step 1.

<figure><img src="/files/wzMzWxuuk3FFmnIuuO1K" alt=""><figcaption></figcaption></figure>

## Multi Tax Code

### **Step 1: Set Up List of Values**

1. Go to **Settings** -> **Document Processing** -> **List of Values**.

   <figure><img src="/files/c3Blvwl1uoxPz3yoCfSl" alt=""><figcaption></figcaption></figure>
2. Click **New**.

   <figure><img src="/files/j3ByavxZtVpi2xL0Gsp1" alt=""><figcaption></figcaption></figure>
3. Create a list with the name `Tax_Country` and click **Save**.

   <figure><img src="/files/2GuWHYKYnJvwkDwkYaWL" alt="" width="375"><figcaption></figcaption></figure>
4. Create the following three additional lists:

   * `Tax_Code_Full`
   * `Tax_Code_Reduced`
   * `Tax_Code_Free`

   <div align="left"><figure><img src="/files/tGbzOf6rwLmSeRC9oKYf" alt=""><figcaption></figcaption></figure> <figure><img src="/files/ftStCSyu7sQKXBPnHQSN" alt=""><figcaption></figcaption></figure> <figure><img src="/files/rVPAEVXp6fGtkNxx9nFM" alt=""><figcaption></figcaption></figure></div>
5. Click on one of the newly created lists to open it. Then, press the **Add Row** button to add a new row.

   <figure><img src="/files/mNINp5pWB3PZM3SyTQVH" alt=""><figcaption></figcaption></figure>
6. Enter the desired respective values from **LN** and press **Save** to save the changes.

   * If you have multiple values, you can click **Add More Values** to add them.

   <div align="left"><figure><img src="/files/PvkCCb2JkZGh6vceHCkI" alt=""><figcaption></figcaption></figure> <figure><img src="/files/3h1ppG3bDrw0uM38uSc9" alt=""><figcaption></figcaption></figure></div>

   * **NOTE:** You can find the Tax Codes in LN under: **Common** → **Taxation** → **Master Data** → **Tax Codes** → **Tax Codes by Country**

   <figure><img src="/files/E76euwXtOmycY1PSunX5" alt=""><figcaption></figcaption></figure>

### **Step 2: Add Fields in DocBits**

1. Navigate to **Settings** -> **Global Settings** -> **Document Types**.

   <figure><img src="/files/hJ3y48ICUBUto9vrArHc" alt=""><figcaption></figcaption></figure>
2. Choose the **Fields** menu corresponding to the Document Type where you wish to add the fields.

   <figure><img src="/files/nTtNOD8HffvDrws4gUiw" alt=""><figcaption></figcaption></figure>
3. Under **VAT & Amounts**, create six new fields as follows:

   <figure><img src="/files/VBsmJENu3ajBdPbGhxqQ" alt=""><figcaption></figcaption></figure>

<table data-header-hidden><thead><tr><th width="306"></th><th width="139"></th><th width="119"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Title</strong></td><td><strong>Field Type</strong></td><td><strong>Value</strong></td></tr><tr><td><code>tax_country</code></td><td>Tax Country</td><td>Dropdown</td><td>Tax_Country</td></tr><tr><td><code>tax_country_2</code></td><td>Tax Country Reduced</td><td>Dropdown</td><td>Tax_Country</td></tr><tr><td><code>tax_country_3</code></td><td>Tax Country Free</td><td>Dropdown</td><td>Tax_Country</td></tr><tr><td><code>tax_code_without_country</code></td><td>Tax Code</td><td>Dropdown</td><td>Tax_Code_Full</td></tr><tr><td><code>tax_code_without_country_2</code></td><td>Tax Code Reduced</td><td>Dropdown</td><td>Tax_Code_Reduced</td></tr><tr><td><code>tax_code_without_country_3</code></td><td>Tax Code Free</td><td>Dropdown</td><td>Tax_Code_Free</td></tr></tbody></table>

<div><figure><img src="/files/rIIUkrCXB1TCcLs7ED7c" alt=""><figcaption></figcaption></figure> <figure><img src="/files/ok5ZIdreX4qg1DESy3mF" alt=""><figcaption></figcaption></figure> <figure><img src="/files/KkfkBXBLhsWgKJJ2mgDx" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="/files/0AVTYaWuQ4BEY5oYAs6u" alt=""><figcaption></figcaption></figure> <figure><img src="/files/VPqN0nfbEFQVQ6tWpKlh" alt=""><figcaption></figcaption></figure> <figure><img src="/files/D3pg19ivTYaeqa4SCwfq" alt=""><figcaption></figcaption></figure></div>

4. After saving each field, click on **Save Settings** to apply the changes.

   <figure><img src="/files/I0eO3GiofU3YWZI1aKrj" alt=""><figcaption></figcaption></figure>

### **Step 3: Edit Layout**

1. Go to **Settings** -> **Global Settings** -> **Document Types**.

   <figure><img src="/files/hJ3y48ICUBUto9vrArHc" alt=""><figcaption></figcaption></figure>
2. Open the **Edit Layout** menu for the Document Type you want to edit.

   <figure><img src="/files/C8Rt3LmwzboPvJgX3rsJ" alt=""><figcaption></figcaption></figure>
3. Select the appropriate **Document Origin** for which you want to apply the Tax Codes

   <figure><img src="/files/ufjkG1IHTpcWq7db88TQ" alt=""><figcaption></figcaption></figure>
4. Scroll down to the **Tax Details** section.

   <figure><img src="/files/rclPM7h6xeqMfBtHHqG7" alt=""><figcaption></figcaption></figure>
5. Expand the **Form Elements** dropdown menu.
6. In the Tax Details section use the **Sub Group** Tool. Drag and Drop it next to an existing field

   <figure><img src="/files/TeKn0DuipMH46LJRqyQP" alt=""><figcaption></figcaption></figure>
7. To name your subgroup, click on the subgroup and enter your desired name in the **Label** field.

   <div><figure><img src="/files/RHF4JxKzyKK7p8baSu4f" alt=""><figcaption></figcaption></figure> <figure><img src="/files/29VQyi7XkzA8tD0nbcKJ" alt=""><figcaption></figcaption></figure></div>
8. Drag and drop the fields that correspond to this group into the **Sub Group** field.

   <figure><img src="/files/nefISfDpW6i9sOn5T9j6" alt=""><figcaption></figcaption></figure>
9. Expand the **Fields** dropdown menu.
10. Search for **Tax** and drag and drop the respective fields, such as **Tax Country** and **Tax Code**, into the corresponding subgroup.

    <figure><img src="/files/U5MCdB1hbNaD42US70XG" alt=""><figcaption></figcaption></figure>
11. Repeat steps 5 through 10 2 times to reach the following state:

    <figure><img src="/files/CQI4AyZU4bbc2wOOgtf8" alt=""><figcaption></figcaption></figure>
12. Save the template.

    <figure><img src="/files/R6WDuIZeGPmSkQSxZvNq" alt=""><figcaption></figcaption></figure>

### Step 4: Verify that Everything Worked and resulting changes

After uploading a new document into DocBits with the correct document settings selected, you will be able to select the tax codes you added in Step 1 and add multiple tax codes configured in Step 3.

* The document will begin with three distinct sections: one for Tax Full amounts, one for Tax Reduced amounts, and one for Tax Free amounts.
* Clicking the plus button within a section will create a duplicate, allowing multiple submissions at the selected tax rate.

<figure><img src="/files/Ywhymr2gUoq0yetNqa92" alt=""><figcaption></figcaption></figure>

* Sections can be deleted by clicking the remove button.

<figure><img src="/files/dnCm0Wr88C9zV7RlpSI5" alt=""><figcaption></figcaption></figure>

* Total Amounts will be calculated as a sum of all sections
* Validation of Total Amount will be modified based on all tax-sections
* Scripts for new sections can only be applied once fields have been added to the view.

### Note for LN:

In **LN** USt Position will be filled out based on the position number from the Tax Code/Tax Country dropdown menu. Only the Position number will be sent to export.

<figure><img src="/files/kitnnqJFmtD7VY1B0mcW" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/38hR5v63om3SlPDinSj1" alt=""><figcaption></figcaption></figure>

#### **Export Mapping**

To link the Tax Line with the Cost Line:

1. Add `TaxLine` to the **InvoiceCostFields** list.
2. Add the following entry, following the example below:\
   `ICF_TaxLine = TF_position`

<figure><img src="/files/Msm55UFqkjtTtbJDM15g" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.docbits.com/infor-integration-and-configuration/exporting-to-infor/ln/export-tax-codes-to-ln.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
