When cost related aspects of a stock item are changed, e.g. materials or operation times, the latest cost for the item is recalculated. Since the costing system was changed to support routing outside operations, the labour and overhead cost for each operation is not saved/updated during the cost calculation for the item.
This occurs because the original code relied on lazy loading of the operations that assumed that the operations remained static once loaded. Newer code reloads those operations based on type, e.g. routing outside operations, so the operations list may change during the cost calculation.
When cost related aspects of a stock item are changed, e.g. materials or operation times, the latest cost for the item is recalculated. Since the costing system was changed to support routing outside operations, the labour and overhead cost for each operation is not saved/updated during the cost calculation for the item.
This occurs because the original code relied on lazy loading of the operations that assumed that the operations remained static once loaded. Newer code reloads those operations based on type, e.g. routing outside operations, so the operations list may change during the cost calculation.