A setup page where you create a sales tax code for each indirect tax or duty that the legal entity must calculate, collect and pay to sales tax authorities.
Auditor, Chief executive officer, Accounts receivable manager and 5 more roles
Business process
Configure tax rates in Dynamics 365 Finance
Menu item
TaxTable
Main table
TaxTable
Data entity
TaxCodeEntity
Setup steps
1 on this page
How this guide was checked
Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page, the demo records and the values in the screenshots.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements. Some of it is Dynamics AX 2012 documentation, an earlier version.
Tests
A ready-to-run test, “Sales tax code calculates and posts to the right account”, to confirm this setup in your own test environment.
Show what matters for
PAGE GUIDEWhat the page does and how to use it9 sections. Choose a role to highlight what matters to you.
Everyone
1What it is and why
What it is
A setup page where you create a sales tax code for each indirect tax or duty that the legal entity must calculate, collect and pay to sales tax authorities.
What you do here
Use this page to hold the tax rates and calculation rules for each sales tax, and to link the tax to a settlement period and a ledger posting group.
Example
For example, with a 25 percent sales tax code that uses Percentage of net amount, an invoice line of 10 items at 1.00 each with a 10 percent line discount has a net amount of 9.00 and sales tax of 2.25.
The page in Dynamics 365. page title tab to open what to set or check
About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
Step by step, with screenshots
Set up Sales tax codes1 screen
Use this page to hold the tax rates and calculation rules for each sales tax, and to link the tax to a settlement period and a ledger posting group.
Screen 1
Create the sales tax code
Go to Tax > Indirect taxes > Sales tax > Sales tax codes
Select New, and enter the Sales tax code and Name
On the General section, select the Settlement period and Ledger posting group, then save
On the Action Pane, select Sales tax code > Values
Enter the From date, To date and Value, then save and close
1Sales tax code
BEAT-ST10
2Settlement period
BEAT-QTR
3Ledger posting group
BEAT-ST
4Percentage/Amount
10.00000
Show the full screen page title tab to open what to set or check
Steps from Microsoft
Go to Tax > Indirect taxes > Sales tax > Sales tax codes.
Select New. In the Sales tax code field, enter a code, and in the Name field, enter a name.
Select the Settlement period, which sets the sales tax authority and the intervals the tax is reported and paid for.
Select the Ledger posting group that holds the main accounts the tax posts to.
Expand the Calculation FastTab and check Origin and the other fields that control how the tax amount is calculated.
On the Action Pane, select Sales tax code > Values, enter a line with From date, To date and the rate in Value, then save.
Add the code to every sales tax group and item sales tax group it must apply to; a code that is in only one of them is never calculated.
Sets which sales tax authority the tax is reported to and how often it is reported and paid.Microsoft Learn
QUARTERLY
TaxPeriod
Ledger posting group
Sets the main accounts that the sales tax posts to in the general ledger.Microsoft Learn
SALESTAX
TaxAccountGroup
Origin
The calculation method applied to the tax base, such as a percentage of the net amount or an amount per unit.Microsoft Learn
TaxBase
Sales tax on sales tax
The other sales tax code that this tax is calculated on, when Origin is Percentage of sales tax.Microsoft Learn
TaxOnTax
Calculation method
Whether the rate applies to the whole taxable amount or to each amount interval separately.Microsoft Learn
TaxCalcMethod
Marginal base
Which amount is used to pick the right rate from the sales tax code values.Microsoft Learn
TaxLimitBase
Values
The tax rate or amount per unit, by From date and To date and by minimum and upper limits. Both dates must be filled in on each line.Microsoft Learn
10/1/2026 to 12/31/2099, 10.00000
Limits
The minimum and maximum sales tax that can be calculated on a sale.Microsoft Learn
Type of tax
The kind of tax, such as Standard VAT, Reduced VAT or VAT 0%, used with the Tax service and multiple VAT registration numbers.Microsoft Learn
Report setup
The sales tax reporting codes that each type of amount on this code is reported under.Microsoft Learn
Sales tax code
The short code that identifies the sales tax. Sales tax groups and item sales tax groups list it, and posted sales tax transactions keep it.Microsoft Learn
BEAT-ST10
TaxCode
Percentage/Amount
The value on a Values line: a percentage of the Origin base, or an amount per unit when Origin is Amount per unit. No tax is calculated without a value for the transaction date.Microsoft Learn
10.00000
Common errors and fixes
Message
What to do
Both from and to date must be filled in
On the Values page, enter a To date as well as a From date on the line. Use a far To date, such as 12/31/2099, for a rate with no planned end, and add a new dated line when the rate changes. Checked in Dynamics 365
No sales tax is calculated on an order line that uses the code.
Check that the code has a value line that covers the transaction date and that it is in both the sales tax group and the item sales tax group on the line. Microsoft Learn
Test checklist
Create a code with a settlement period, a ledger posting group and a value line dated from today.
Add the code to one sales tax group and one item sales tax group.
Create a sales order line that uses both groups and open Sales tax: the code and amount appear.
Post the invoice and open Posted sales tax on the voucher: the code is shown and the amount sits on the Sales tax payable account of the ledger posting group.
One sales tax code per tax and rate you must calculate and report, each with a Settlement period and a Ledger posting group; record rate changes as new dated lines under Values rather than editing the old rateLearn says a sales tax code is created for every indirect tax the legal entity must calculate, collect and pay, and every code must link to a settlement period (who and when you report) and a ledger posting group (which accounts it posts to). Rates are held as values with From date and To date, so dated lines keep history.
Support multiple VAT registration numbers (Optional)
Licence or add-in
On the live system, Accountant and Accounting supervisor maintain sales tax codes, and Accounting manager, Accounts receivable manager, Auditor, Financial controller and Chief executive officer can view them. No feature is needed to use the page; Support multiple VAT registration numbers adds the Type of tax field.
Hard to reverse: You can edit a code and add dated values at any time; the change applies to tax calculated afterwards. Posted sales tax transactions are not recalculated; to correct them, reverse the document or post a general journal line with the sales tax code. Microsoft Learn
If you change it later
When advanced tax calculation is turned on in Tax calculation parameters, the rounding rules set on sales tax codes no longer apply. Microsoft Learn
Technical architect
6Technical
Menu item
TaxTableChecked in Dynamics 365
Form
TaxTableChecked in Dynamics 365
Table
TaxTableShown as “Sales tax codes” in Record infoKey field: TaxCodeChecked in Dynamics 365
DutyInquire into sales tax policiesTaxSalesTaxPoliciesInquire
PrivilegeView sales tax codesTaxTableView
RoleFinancial controllerLedgerFinancialController
DutyInquire into sales tax policiesTaxSalesTaxPoliciesInquire
PrivilegeView sales tax codesTaxTableView
Checked in Dynamics 365
Roles to set it up and use it
To set it up or change itAccountant LedgerAccountantAccounting supervisor LedgerAccountingSupervisorTo use itAccounting manager LedgerAccountingManagerAccounts receivable manager CustInvoiceAccountsReceivableManagerAuditor AuditPolicyManagerFinancial controller LedgerFinancialControllerChief executive officer CompanyChiefExecutiveOfficerGive people one of these roles. On this system, 8 roles can open this page.Checked in Dynamics 365
Each button below opens a menu item. Start from a standard security role, or from an empty one, and choose what the new role gets for each button: remove it, or an access level. Then create the file that System administration > Security > Security configuration > Data > Import reads. The file holds a copy of the role and copies of only the duties and privileges that change. Everything else stays the standard object.
This demo uses Microsoft's standard roles. To do the same on your own system, with your own roles, use the Chrome extension or the bookmark.
Accounting manager (LedgerAccountingManager) can use 7 of these buttons. You can also give it buttons it does not have.
On your own system, the Advanced Security configuration bookmark does the same with your real roles, including your own: click a button on the live page to see who can use it and what to change.
Built from Microsoft's standard security definitions for version 10.0.49 and the buttons seen on this page in a working system. Add-ons, your own roles and later versions can differ. Beyond ERP is not affiliated with Microsoft. Buttons without a menu item, such as Post, are not listed: security roles cannot change them this way.
TaxCodeEntity (Sales tax codes): loaded for each company, in Microsoft's default template 130 - Tax.Load order: Microsoft's default template 130 - Tax loads Sales tax codes at execution unit 1, level 130, sequence 30. Lower levels load first, and entities at the same level load in sequence order.Load first: Sales tax reporting codes, Sales tax period setup, the default templates at lower levels (System setup to Accounts payable)Microsoft Learn
Checked in a working Dynamics 365 system, version 10.0.49: the menu item, form, table and security, the page, the demo records and the values in the screenshots.