From c182b4085b8f512c793a4bc494d616f5a204a30d Mon Sep 17 00:00:00 2001 From: Shllokkk Date: Sun, 26 Jul 2026 13:11:11 +0530 Subject: [PATCH] fix: recalculate operating cost on hour rate change in routing (cherry picked from commit 598f6f0f4e1060235ce96a782bbc11631ea6ba27) --- erpnext/manufacturing/doctype/routing/routing.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/erpnext/manufacturing/doctype/routing/routing.js b/erpnext/manufacturing/doctype/routing/routing.js index 83b81690ec3..44103f210c2 100644 --- a/erpnext/manufacturing/doctype/routing/routing.js +++ b/erpnext/manufacturing/doctype/routing/routing.js @@ -79,6 +79,11 @@ frappe.ui.form.on("BOM Operation", { const d = locals[cdt][cdn]; frm.events.calculate_operating_cost(frm, d); }, + + hour_rate: function (frm, cdt, cdn) { + const d = locals[cdt][cdn]; + frm.events.calculate_operating_cost(frm, d); + }, }); frappe.tour["Routing"] = [