Merge pull request #22372 from rohitwaghchaure/fixed-completed-qty-not-updated-in-wo

fix: completed qty not updated in work order
This commit is contained in:
rohitwaghchaure
2020-06-28 15:22:56 +05:30
committed by GitHub

View File

@@ -131,7 +131,7 @@ class JobCard(Document):
work_order_field = "name" if field == "operation_id" else field
for data in wo.operations:
if data.get(work_order_field) == self.get(field) and data.workstation == self.workstation:
if data.get(work_order_field) == self.get(field):
data.completed_qty = for_quantity
data.actual_operation_time = time_in_mins
data.actual_start_time = time_data[0].start_time if time_data else None