mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
Track Operations removed and Global Switch added to disable capacity planning in manufacturing settings
This commit is contained in:
@@ -201,9 +201,7 @@ class StockEntry(StockController):
|
||||
def check_if_operations_completed(self):
|
||||
"""Check if Time Logs are completed against before manufacturing to capture operating costs."""
|
||||
prod_order = frappe.get_doc("Production Order", self.production_order)
|
||||
if not prod_order.track_operations:
|
||||
return
|
||||
|
||||
|
||||
for d in prod_order.get("operations"):
|
||||
total_completed_qty = flt(self.fg_completed_qty) + flt(prod_order.produced_qty)
|
||||
if total_completed_qty > flt(d.completed_qty):
|
||||
|
||||
Reference in New Issue
Block a user