Fix(bom): refetch the rate of item when 'source_from_supplier' is updated (backport #54187) (#54208)

Co-authored-by: Sambhav Saxena <76242518+sambhavsaxena@users.noreply.github.com>
Fix(bom): refetch the rate of item when 'source_from_supplier' is updated (#54187)
This commit is contained in:
mergify[bot]
2026-04-10 23:44:42 +05:30
committed by GitHub
parent b42e23993d
commit 66fdd061e7

View File

@@ -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);
}
});