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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Get sales tax for each sales order line prior to invoice

(0) ShareShare
ReportReport
Posted on by 40

Hi,

We are currently implementing D365 F&O.  One of the things that we currently report from our legacy ERP is the results of each day's sales bookings.  Bookings would be defined as orders that were created on that day, regardless of whether they've been executed or invoiced.  This would include:

  1. Booked revenue
  2. Booked gross margin

Our current ERP system includes sales amount + sales tax on each line for each booked order line.  We are finding the D365 F&O only records the sales amount and that we don't get sales tax by line until the order is invoiced.

Is there any way to retrieve the sales tax per line prior to the order being invoiced?

Our first thought was to take the value from the ESTIMATE field on SALESTABLE in the AX database and subtract the order subtotal amount to get the tax amount. We would then prorate that amount over the sales lines by the sales amount on each line.  However, we're finding that the ESTIMATE field on SALESTABLE is often $0.00 - I'm not familiar enough with D365 yet to understand why that field isn't always populated with a value.

Thanks!

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,030 Super User 2025 Season 2 on at

    Hi AUarero,

    What I do understand is that you need to create a report and calculate per line the sales tax. There are is an API available (class TaxCalculation) to calculate the sales tax. Note that this would also slow down the report processing.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello AUaero,

    An easy alternative might be using electronic reporting (ER).

    ER allows you exporting your lines with the sales tax details (taxgroup/itemtaxgroup) so that you can do the tax calculation in the ER.

    Might be worth giving it a try.

    Best regards,

    Ludwig

  • Suggested answer
    Annaick Profile Picture
    on at

    Hello,

    Both previous answered are suggestion. 

    As you get, tax is a calculated field when invoice is posted. Until invoice is posted, this is a temporary field. 

    you may have several tax codes for one line and also you can change tax until invoicing. SO until it is invoices sales tax amount is not visible available on report. 

    This will then be a customized report that will have to be created. Sales tax code percentage can be added to calculate sales tax. If it is simple VAT then it should be easy, it becomes more complex if you have deductible VAT or several sales tax code (reverse charge).

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans