uzerpllp / uzerp

uzERP - Open Source Business Management
http://www.uzerp.com
Other
55 stars 25 forks source link

MF Operation costs not saved on item cost re-calculation #246

Closed steveblamey closed 3 years ago

steveblamey commented 3 years ago

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.