Configuring the Default Tax Country for Export LN

Overview

The default Tax Country for export is set to DE (Germany) to prevent export errors. This can be changed in the mapping file by either:

  • Defining a different static value.

  • Mapping it dynamically to a field in DocBits.

Note: If the specified field does not exist or is empty, the export will default back to DE.

Steps to Modify the Tax Country

1. Obtain the Mapping File

  • Navigate to DocBits → Settings → Document Processing → Export.

  • Open the export configuration you want to modify.

  • Click on Download to obtain the mapping file.

  • Open the file in a text editor.

2. Modify the Mapping File

Choose one of the two options below and apply the necessary changes.

Option 1: Static Value

To set a static Tax Country value, follow these steps:

  1. Define a new static field by adding ,TaxCountry to the StaticFields line.

    StaticFields=FinancialCompany...,TaxCountry
  2. Set the country code by adding the following line:

    SF_TaxCountry=CountryCode

    Replace CountryCode with the actual country code, e.g., ES for Spain or DE for Germany:

    SF_TaxCountry=ES

Example:

StaticFields=FinancialCompany,TaxCountry
SF_TaxCountry=FR

Option 2: Dynamic Mapping from DocBits Field

To dynamically map the Tax Country from a field in DocBits:

  1. Add ,TaxCountry to the HeaderFields line:

    HeaderFields=SupplierCode,...,TaxCountry
  2. Define the corresponding field mapping:

    HF_TaxCountry=DocBits_Field_name

    Replace DocBits_Field_Name with the actual field name in DocBits:

    HF_TaxCountry=tax_country_1

Example:

HeaderFields=SupplierCode,TaxCountry
HF_TaxCountry=tax_country_1

Summary

  • If the Tax Country is not defined or the field is empty, it defaults to DE.

  • Use a static value if the Tax Country remains constant for all exports.

  • Use a dynamic field mapping if the Tax Country varies per document.

By following these steps, you can successfully modify the Tax Country mapping to fit your needs.

Last updated

Was this helpful?