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

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

(0) ShareShare
ReportReport
Posted on by 21

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

*This post is locked for comments

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    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

  • Lana Fernando Profile Picture
    21 on at

    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"?

  • Verified answer
    Pedro Tornich Profile Picture
    955 on at

    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
    21 on at

    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".

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

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans