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

This commit is contained in:
Sambhav Saxena
2026-04-10 23:42:13 +05:30
committed by GitHub
parent 1e64f392bb
commit 1dcfd9174f

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