Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to calculate the SalesQuotationForm -> Sales quotation total section "Order Balance, Order Contribution Ratio, Order Margin"

Posted on by 15

How to find SalesQuotationForm -> Sales quotation total section "Order Balance, Order Contribution Ratio, Order Margin"

*This post is locked for comments

  • Lana Fernando Profile Picture
    Lana Fernando 15 on at
    RE: How to calculate the SalesQuotationForm -> Sales quotation total section "Order Balance, Order Contribution Ratio, Order Margin"

    Thanks lot Pedro Tornich,  I am new to MS Dynamics, have stuck in last one day. Your answer very helpful to me. Once again "Merci à toi".

  • Verified answer
    Pedro Tornich Profile Picture
    Pedro Tornich 955 on at
    RE: How to calculate the SalesQuotationForm -> Sales quotation total section "Order Balance, Order Contribution Ratio, Order Margin"

    Hi Lana,

    To calculate those values you must use the SalesQuotationTotals class.

    Sample code:

    SalesQuotationTotals totals = SalesQuotationTotals::construct(salesQuotationTable);

    Amount balance = totals.totalBalance();

    Amount contributionRatio = totals.totalContributionRatio();

    Amount margin = totals.totalContributionMargin();

  • Lana Fernando Profile Picture
    Lana Fernando 15 on at
    RE: How to calculate the SalesQuotationForm -> Sales quotation total section "Order Balance, Order Contribution Ratio, Order Margin"

    Thanks Dr. Ludwig Reinhard,

      I have add post subscription method, it's trigger when the SalesQuotation table "update". I getting SalesQuotation instance for newly updated record.  Thorugh this instance how can I calculate "Order Balance, Order Contribution Ratio, Order Margin"?

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: How to calculate the SalesQuotationForm -> Sales quotation total section "Order Balance, Order Contribution Ratio, Order Margin"

    Hello Lana,

    Can you describe what you want to find exactly and especially where? Do you plan to make some modifications to the sales quotation form and try to identify the underlying data sources in Visual Studio or what is it exactly that you are trying to do?

    Would be great if you could provide some additional information here. Just one short sentence is a big meager to provide you some clear and straightforward answer.

    Many thanks and best regards,

    Ludwig

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans