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 NAV (Archived)

How to get the amount of the total price of a sales order.

(0) ShareShare
ReportReport
Posted on by 450

So I have a sales order and i'm trying to get the price that's inside of the order's "sales line". Now any field i seem to return it keeps giving me a value of 0,00. Any way i am able to retrieve the "Total Incl. VAT" price?

EDIT:

I found out the total price including VAT isn't a field but a Source Expression but that leaves me even more clueless on how to get the value.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    You need to call calcfields function if the field is a flowfield. For example SalesHeader.Calcfields("Amount Including VAT");

    Tero

  • InsertX Profile Picture
    450 on at

    I'll give this shot. Also i was wondering (it's to achieve the same but anyway) in "Sales Line" there is a function called "CalcVATAmountLines". Since someone told me i should take a look at this i was wondering as well in what way i would be able to use that function to get me there?

  • Verified answer
    Community Member Profile Picture
    on at

    CalcVATAmountLines is used to calculate the VAT amount per VAT Group. You may need this in reporting VAT breakdown on a sales document, but not here. Way too complicated as it returns you A bunch of lines.

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 NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans