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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to get Tax Amount and Line Amount in my custom fields?

(0) ShareShare
ReportReport
Posted on by 239

Hello everyone, I got stuck in one task where in my Sales Order there are two custom fields I need to populate these fields one by "Line Amount" another field by "Tax Amount". When we create a sales order >> F9 will show "Sales Order Statistics" with the calculated line values these values I need to show in my two custom fields in the Sales order. Please suggest.

*This post is locked for comments

I have the same question (0)
  • ManishS Profile Picture
    86 on at
    RE: How to get Tax Amount and Line Amount in my custom fields?

    Try to put you code in updatesalesline function in sales line table.

  • Suggested answer
    CDsilva Profile Picture
    4,188 on at
    RE: How to get Tax Amount and Line Amount in my custom fields?

    Hi, I didn't get you clearly. Is your question same as this thread community.dynamics.com/.../281850

    If yes then you can follow the solution provided.

  • KaryaNavTech Profile Picture
    239 on at
    RE: How to get Tax Amount and Line Amount in my custom fields?

    Sorry but it wont provide the solution i need. Because the Tax Amount gets calculated based on tax group code , and too only after giving the items. If i give as what mentioned above it will be always Zero it wont calculate the logic for the items in the line.I guess you understood :)

  • CDsilva Profile Picture
    4,188 on at
    RE: How to get Tax Amount and Line Amount in my custom fields?

    Hi Navtech,

    Verify the answer if it worked for you.

  • Suggested answer
    CDsilva Profile Picture
    4,188 on at
    RE: How to get Tax Amount and Line Amount in my custom fields?

    These fields are in Sales Line right. OnValidate of Unit Price you can write.

    CustomfieldName1:= Line Amount

    Same for other field

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans