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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to get CustInvoiceTrans lineamount before tax for Price Include Tax

(0) ShareShare
ReportReport
Posted on by 596

Hi guys,

In CustInvoiceTrans, is there any existing method to get LineAmount before tax for Price Include Tax scheme ? 

I found this quite difficult to achieve, as there is method called LineAmountInclTax() which has this calculation : "this.LineAmount + this.LineAmountTax", that suggested that the LineAmount is exclude (before) tax, but if the Invoice already flag as Price Include Tax, it became wrong.

There are some other methods in the table, but I have doubt on which is the best to get my "total amount" before tax.

Thanks,

  • Suggested answer
    huijij Profile Picture
    19,813 on at

    Hi Lars,

    Did you find the method? You can customize a method by COC to suit your needs.

    learn.microsoft.com/.../method-wrapping-coc

  • Suggested answer
    Voltes Profile Picture
    596 on at

    Hi Judy,

    Yes, but I just wondering whether there is already existing method for this ? I mean this is a standard or common calculation whereby sometime we have Price Include Tax in our transactions, it feels odd to have custom method.

    There are a bunch already actually, I guess it was build for our choice based on our scenario. I ended up using this -> lineAmountPreAddOfSalesMarkup()

    Thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
Martin Dráb Profile Picture

Martin Dráb 445 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 309 Super User 2026 Season 2

#3
CU29091230-0 Profile Picture

CU29091230-0 192

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans