mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
Fix(bom): refetch the rate of item when 'source_from_supplier' is updated (#54187)
This commit is contained in:
@@ -955,6 +955,8 @@ frappe.ui.form.on("BOM Item", "sourced_by_supplier", function (frm, cdt, cdn) {
|
|||||||
if (d.sourced_by_supplier) {
|
if (d.sourced_by_supplier) {
|
||||||
d.rate = 0;
|
d.rate = 0;
|
||||||
refresh_field("rate", d.name, d.parentfield);
|
refresh_field("rate", d.name, d.parentfield);
|
||||||
|
} else {
|
||||||
|
get_bom_material_detail(frm.doc, cdt, cdn, false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user