From 1dcfd9174f6a04097c376e5a2938ec31930e6e7c Mon Sep 17 00:00:00 2001 From: Sambhav Saxena <76242518+sambhavsaxena@users.noreply.github.com> Date: Fri, 10 Apr 2026 23:42:13 +0530 Subject: [PATCH] Fix(bom): refetch the rate of item when 'source_from_supplier' is updated (#54187) --- erpnext/manufacturing/doctype/bom/bom.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index 32c543703bc..f0d9576d469 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js @@ -955,6 +955,8 @@ frappe.ui.form.on("BOM Item", "sourced_by_supplier", function (frm, cdt, cdn) { if (d.sourced_by_supplier) { d.rate = 0; refresh_field("rate", d.name, d.parentfield); + } else { + get_bom_material_detail(frm.doc, cdt, cdn, false); } });