I am trying to find a piece of code that updates the unit price when the price group is changed on the sales order header and the update unit price flag is set.
When one changes the price group on the header, then it comes up with a dialog: Update Order Lines and prompt if the unit price should be changed.
This dialog is generated in class is SalesTable2LineUpdatePrompt. I have added a breakpoint at SalesPurchLineInterface.SetPriceDisc but it never reached it. It reaches SalesPurchLineInterface.setPriceDiscFixedPolicy, but nowhere in here can I see where it recalculate the unit price . I thought it would use the standard classes like Pricedisc and PriceDisc_Price and RetailSalesOrderCalculator to recalculate the unit price, but it doesn't.
I need to add an extension for it to pull custom pricing where applicable but need to find the standard piece of code first.
Can anybody point me in the right direction please?