Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

PreUpdateQuoteProduct Not Recalculating totalamount

Posted on by 15

Hi there everyone!

I am working in Microsoft Dynamics CRM 2011. We have a plugin that is firing Pre-Operation on QuoteProduct that simply checks if the ispriceoverridden is 1, if it is it sets manual and volume discount amounts to 0. This seems to be working great on a per QuoteProduct (line item) basis, but it is not updating the totalamount on the Quote itself.

We have an identical plugin on the Pre-Operation of OrderProduct doing the same thing, that is working as expected. Why would the Quote totalamount not be calculating correctly (it seems to be still applying the volume discount).

*This post is locked for comments

  • ZT_Matt Profile Picture
    ZT_Matt 15 on at
    RE: PreUpdateQuoteProduct Not Recalculating totalamount

    Thank you for your response.

    We have checked the audit trail and everything looks perfect. The Update is showing the volume discount being set to 0 and the calculations on the individual line items are correct, but the totalamount calculation for the Quote is still incorporating the volume discount.

    When reopening the Quote Product from the Quote page, everything is showing up as expected and the only other extras on the audit trail are showing Retrieve of the ispriveoverridden  

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: PreUpdateQuoteProduct Not Recalculating totalamount

    The calculation sequence is a bit complex, and it's possible that quotes and orders are slightly different, but I've not seen that. It's worth checking the execution order of your plugins, though the system calculations normally work on a difference stage from those available to custom plugins.

    It's worth enabling auditing to see what is happening in the calculation sequence. This also shows that some of the system calculations do the Update on a Retrieve

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans