Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How to get CustInvoiceTrans lineamount before tax for Price Include Tax

(0) ShareShare
ReportReport
Posted on by 592

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
    Voltes Profile Picture
    Voltes 592 on at
    RE: How to get CustInvoiceTrans lineamount before tax for Price Include Tax

    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

  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: How to get CustInvoiceTrans lineamount before tax for Price Include Tax

    Hi Lars,

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

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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans