mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fix(ux): refresh update to zero val checkbox (#30567)
This commit is contained in:
@@ -633,7 +633,7 @@ frappe.ui.form.on('Stock Entry Detail', {
|
|||||||
// set allow_zero_valuation_rate to 0 if s_warehouse is selected.
|
// set allow_zero_valuation_rate to 0 if s_warehouse is selected.
|
||||||
let item = frappe.get_doc(cdt, cdn);
|
let item = frappe.get_doc(cdt, cdn);
|
||||||
if (item.s_warehouse) {
|
if (item.s_warehouse) {
|
||||||
item.allow_zero_valuation_rate = 0;
|
frappe.model.set_value(cdt, cdn, "allow_zero_valuation_rate", 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user