I made custom calculation to change product price on cart page.
Product type is bundle. And bundle product price type is dynamic.
Calculation is working fine my custom calculation is display in order info but when I create invoice from order my custom calculation is not taking effect in invoice grand total and subtotal.
I know bundle product price type is dynamic so when prepareInvoice
method is called for creating invoice it called $invoice->collectTotals();
and this method further recalculate associated product price so my custom calculation is not taking effect.
So what is solution for this???