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 :
Microsoft Dynamics AX (Archived)

Net amount value field (for customers with the VAT included in the price)

(0) ShareShare
ReportReport
Posted on by

I am unable to locate the Net Amount in the SalesLine table for a Customer that includes the VAT in the price.  The field SalesLine.LineAmount displays the Net Amount + VAT.

I was able to find the taxable amount in the table TAXTRANS, but this does not include open order.

Please can someone help me find the genuine net amount for reporting purposes.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    I am afraid it would not be visible in a table/field directly, you could only do the calculation via the SalesTotals class within AX, so for your report you'd have to calculate it yourself in an AX report data provider class.

    Take a look at the below examples:

    community.dynamics.com/.../gst-tax-at-sales-order-and-sales-line-level-through-x

    community.dynamics.com/.../sales-order-total-by-code-x

    Verify if you are able to get the correct figures by using the above for tax-inclusive lines as well, you just have to get the amount which you are after from SalesTotals (net amount).

  • Community Member Profile Picture
    on at

    Thanks for the quick response Vilmos.

    Is there anyway to get the tax amount at sales line level directly querying the SQL database rather than using X++?

    Thanks

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    For invoiced transactions you can, CustInvoiceTrans has LineAmount and LineAmountTax. But you have the requirement to be able to do this for open sales lines too, for which you do need the calculation from code. You may do business logic in C# for your SSRS report (but that would be essentially calling the same pieces of code in AX via proxy classes or Business Connector), or do like I suggested, a Tmp table for your report and do the calculation for the tax/net amount fields in the data provider class within AX.

    For most of the complex reports you cannot avoid working with an AX developer.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans