Issue about wap (weighted average price) or avgPrice

Hello community,

I noticed when making a supplier stockMove and cancel it, there is no process of rolling back to the previous state of the average price. In other terms, when we realize the stockMove (the status of the stockMove get changed from planned to realized), axelor calculate the pmp and create a new stockLocationLine but when we cancel the stockMove (the status of the stockMove get changed from realized to canceled), axelor dosen’t replace the current pmp with the previous one and the created stockLocationLine doesn’t get deleted.