web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Sales tax calculation

(0) ShareShare
ReportReport
Posted on by

Hi All,

I raised a sales order with 4 lines and the sales tax is not calculating properly. There is always a difference in rounding and there is a difference in the total value of sales tax. When we analysed the code we found that sales tax is calculated and then the same is apportioned between the 4 lines based on the values.

I want to have sales tax calculated line wise and the order wise.

Please correct me if i am wrong.

Regards

Narayan Seshaddri

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,126 Super User 2026 Season 1 on at

    Hi Narayan,

    There is a setup where you can indicate if the tax should be calculated per line or in total. It is set to line, it will calculate and round per line. The total invoice amount is not considered then.

    If it is set to total, initially per line the tax will be calculated and rounded. Also a total will be calculated and rounded. If there is a difference between the total and the cumulation of the lines AX will correct this on one of the lines.

    Is this the answer to your question? If not, please provide examples.

  • Community Member Profile Picture
    on at

    Hi,

    Thanks for the reply,

    But the calculation method is Line here but when i calculate the tax it is comming as below

    For ex : My invoice value is 100, total sales tax to be calculated is 10 but calculating as 8.5 the rounding off is 0 in currency master and 0 in sales tax .

    Regards

    Narayan Seshaddri

  • Suggested answer
    ZvikaR Profile Picture
    174 on at

    I believe this is controlled by how you set up your Sales Tax codes.

    On the sales tax code, calculation tab,

    Marginal Base --> Net Amount per Line

  • Suggested answer
    ZvikaR Profile Picture
    174 on at

    I double checked that and I can confirm.

    This is not a "defect" but simply 2 different options to calculate VAT or sales tax.

    You can calculate the tax on the invoice total.  In such case, due to rounding of amounts to 2 decimal points, the tax amount calculated is not exactly the total of what calculated for each line. In such case - Dynamics AX will adjust the line with the highest amount up or down several cents so the total tax of all lines is the total tax recorded.

    The setup to achieve that:

    On tax code definition, the "Marginal Base" is set to "Net Amount by Invoice Balance"

    You can calculate the tax on each line separately. In such cases, due to the same rounding, when you look at the total tax charged on the order, it will not be exactly the invoice total x tax percentage.

    The setup to achieve that:

    On GL parameters form: Calculate Tax "By Line"

    On tax code definition, the "Marginal Base" is set to "Net Amount per Line"

  • Community Member Profile Picture
    on at

    Hi,

    Thanks for the reply

    Now i have set the "Marginal Base"as Net amount per line as specified above and the rounding is coming except for the company currency. For other currency like transaction currency the rounding is working properly for 4 digits. But when i look the Invoice journal and in Posted sales tax screen the company currency is not getting rounded off to 4 digits.

    Regards

    Narayan Seshaddri

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#1
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans