fix: cannot start / stop Job Card (backport #35753) (#35755)
fix: cannot start / stop jobs
(cherry picked from commit 53ec2a9268ca41fd44f58859df02c1f0876ed757)
Co-authored-by: Anoop Kurungadam <anoop@earthianslive.com>
diff --git a/erpnext/manufacturing/doctype/job_card/job_card.py b/erpnext/manufacturing/doctype/job_card/job_card.py
index 496cbfd..2c17568 100644
--- a/erpnext/manufacturing/doctype/job_card/job_card.py
+++ b/erpnext/manufacturing/doctype/job_card/job_card.py
@@ -161,7 +161,7 @@
self.total_completed_qty = flt(self.total_completed_qty, self.precision("total_completed_qty"))
for row in self.sub_operations:
- self.c += row.completed_qty
+ self.total_completed_qty += row.completed_qty
def get_overlap_for(self, args, check_next_available_slot=False):
production_capacity = 1