From 4fe91bd8b82a7c99032a9ac3ff7fec6b37c8c437 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 fe67fe3feb6..374de33331c 100644 --- a/erpnext/manufacturing/doctype/routing/routing.js +++ b/erpnext/manufacturing/doctype/routing/routing.js @@ -69,6 +69,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"] = [