Up until now we haven't used product bundles, as we found the (now deprecated) kit functionality did what we needed.
However because of some changes to our commercial offer, and the future deprecation of kits, we are investigating moving across to using the Product Bundle functionality.
Unfortunately we have done some significant customisation around sales entities and have implemented a custom CalculatePrice plugin.
I have been doing an experiment with a simple bundle containing two required products and one optional product. Although we are still seeing Dynamics add all the bundle products to the invoice when we add the bundle, we aren't seeing the correct pricing behaviour.
The CalculatePrice plugin is being fired for invoice and for the invoicedetail that contains the bundle, but not for the sub lines added as part of the bundle. So although the unit price field is filling correctly based on default behaviour, our custom extended price field is not getting touched, and in fact for each bundle item is getting the extended price value from the bundle itself.
Looking in detail at the invoicedetails that have been created I can see that the lines for the sub-products have the correct producttypecode, and a parentbundleid - so in theory we could work out the correct behaviour if only the platform fired the custom pricing plugin for those lines.
At the moment the only thing I can think of is to somehow fire another whole-invoice recalculate after all the products are added and do a forced iteration over all the line items
Anyone else come across this issue?
*This post is locked for comments
I have the same question (0)