Configuring the Default Tax Country for Export LN
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.
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:
Define a new static field by adding ,TaxCountry
to the StaticFields
line.
Set the country code by adding the following line:
Replace CountryCode
with the actual country code, e.g., ES
for Spain or DE
for Germany:
Example:
Option 2: Dynamic Mapping from DocBits Field
To dynamically map the Tax Country from a field in DocBits:
Add ,TaxCountry
to the HeaderFields
line:
Define the corresponding field mapping:
Replace DocBits_Field_Name
with the actual field name in DocBits:
Example:
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.