How to find SalesQuotationForm -> Sales quotation total section "Order Balance, Order Contribution Ratio, Order Margin"
*This post is locked for comments
How to find SalesQuotationForm -> Sales quotation total section "Order Balance, Order Contribution Ratio, Order Margin"
*This post is locked for comments
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".
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();
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"?
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156