From cac9eed306023ab6342b176ad6502e509a70d682 Mon Sep 17 00:00:00 2001 From: Raffael Meyer <14891507+barredterra@users.noreply.github.com> Date: Wed, 26 Nov 2025 13:16:47 +0100 Subject: [PATCH] fix(Job Card): avoid Type Error when completed_qty is None (#50447) --- erpnext/manufacturing/doctype/job_card/job_card.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/job_card/job_card.py b/erpnext/manufacturing/doctype/job_card/job_card.py index 47122685a8c..c34651f9ef1 100644 --- a/erpnext/manufacturing/doctype/job_card/job_card.py +++ b/erpnext/manufacturing/doctype/job_card/job_card.py @@ -605,7 +605,7 @@ class JobCard(Document): op_row.employee.append(time_log.employee) if time_log.time_in_mins: op_row.completed_time += time_log.time_in_mins - op_row.completed_qty += time_log.completed_qty + op_row.completed_qty += flt(time_log.completed_qty) for row in self.sub_operations: operation_deatils = operation_wise_completed_time.get(row.sub_operation)