Export Tax Codes to LN
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide will walk you through the setup process to ensure tax codes are correctly exported from DocBits to LN.
Go to Settings -> Document Processing -> List of Values.
Click New.
Create a list with the name Tax_Country
and click Save.
Create the following three additional lists:
Tax_Code_Full
Tax_Code_Reduced
Tax_Code_Free
Click on one of the newly created lists to open it. Then, press the Add Row button to add a new row.
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.
NOTE: You can find the Tax Codes in LN under: Common → Taxation → Master Data → Tax Codes → Tax Codes by Country
Navigate to Settings -> Global Settings -> Document Types.
Choose the Fields menu corresponding to the Document Type where you wish to add the fields.
Under VAT & Amounts, create six new fields as follows:
Name
Title
Field Type
List of Values
tax_country
Tax Country
Dropdown
Tax_Country
tax_country_2
Tax Country Reduced
Dropdown
Tax_Country
tax_country_3
Tax Country Free
Dropdown
Tax_Country
tax_code_without_country
Tax Code
Dropdown
Tax_Code_Full
tax_code_without_country_2
Tax Code Reduced
Dropdown
Tax_Code_Reduced
tax_code_without_country_3
Tax Code Free
Dropdown
Tax_Code_Free
After saving each field, click on Save Settings to apply the changes.
Go to Settings -> Global Settings -> Document Types.
Open the Edit Layout menu for the Document Type you want to edit.
Select the appropriate Document Origin for which you want to apply the Tax Codes
Scroll down to the Tax Details section.
Expand the Form Elements dropdown menu.
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.
Expand the Form Fields dropdown menu.
Search for Tax Country and drag and drop the field into its respective area.
Search for Tax Code and drag and drop the field into its corresponding area.
Save the template.
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.
Go to Settings -> Document Processing -> List of Values.
Click New.
Create a list with the name Tax_Country
and click Save.
Create the following three additional lists:
Tax_Code_Full
Tax_Code_Reduced
Tax_Code_Free
Click on one of the newly created lists to open it. Then, press the Add Row button to add a new row.
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.
NOTE: You can find the Tax Codes in LN under: Common → Taxation → Master Data → Tax Codes → Tax Codes by Country
Navigate to Settings -> Global Settings -> Document Types.
Choose the Fields menu corresponding to the Document Type where you wish to add the fields.
Under VAT & Amounts, create six new fields as follows:
Name
Title
Field Type
Value
tax_country
Tax Country
Dropdown
Tax_Country
tax_country_2
Tax Country Reduced
Dropdown
Tax_Country
tax_country_3
Tax Country Free
Dropdown
Tax_Country
tax_code_without_country
Tax Code
Dropdown
Tax_Code_Full
tax_code_without_country_2
Tax Code Reduced
Dropdown
Tax_Code_Reduced
tax_code_without_country_3
Tax Code Free
Dropdown
Tax_Code_Free
After saving each field, click on Save Settings to apply the changes.
Go to Settings -> Global Settings -> Document Types.
Open the Edit Layout menu for the Document Type you want to edit.
Select the appropriate Document Origin for which you want to apply the Tax Codes
Scroll down to the Tax Details section.
Expand the Form Elements dropdown menu.
In the Tax Details section use the Sub Group Tool. Drag and Drop it next to an existing field
To name your subgroup, click on the subgroup and enter your desired name in the Label field.
Drag and drop the fields that correspond to this group into the Sub Group field.
Expand the Fields dropdown menu.
Search for Tax and drag and drop the respective fields, such as Tax Country and Tax Code, into the corresponding subgroup.
Repeat steps 5 through 10 2 times to reach the following state:
Save the template.
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.
Sections can be deleted by clicking the remove button.
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.
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.
To link the Tax Line with the Cost Line:
Add TaxLine
to the InvoiceCostFields list.
Add the following entry, following the example below:
ICF_TaxLine = TF_position
Example: