diff --git a/erpnext/manufacturing/doctype/job_card/job_card.py b/erpnext/manufacturing/doctype/job_card/job_card.py index 349e7eb4b3f..d4340f1b169 100644 --- a/erpnext/manufacturing/doctype/job_card/job_card.py +++ b/erpnext/manufacturing/doctype/job_card/job_card.py @@ -443,7 +443,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) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index a37b4048e10..9aaa5728ad7 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -438,6 +438,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe item.weight_per_unit = 0; item.weight_uom = ''; + item.uom = null // make UOM blank to update the existing UOM when item changes item.conversion_factor = 0; if(['Sales Invoice'].includes(this.frm.doc.doctype)) {