diff --git a/erpnext/manufacturing/doctype/job_card/job_card.py b/erpnext/manufacturing/doctype/job_card/job_card.py index ef740d2eea7..79a983603a3 100644 --- a/erpnext/manufacturing/doctype/job_card/job_card.py +++ b/erpnext/manufacturing/doctype/job_card/job_card.py @@ -547,7 +547,7 @@ class JobCard(Document): ) def update_work_order_data(self, for_quantity, time_in_mins, wo): - ws_hr_rate = frappe.get_value("Workstation", self.workstation, "hour_rate") + workstation_hour_rate = frappe.get_value("Workstation", self.workstation, "hour_rate") jc = frappe.qb.DocType("Job Card") jctl = frappe.qb.DocType("Job Card Time Log")