fix(ux): refresh update to zero val checkbox (#30567)

This commit is contained in:
Ankush Menat 2022-04-04 17:29:51 +05:30 committed by GitHub
parent 74e9bc6d65
commit de83511091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -633,7 +633,7 @@ frappe.ui.form.on('Stock Entry Detail', {
// set allow_zero_valuation_rate to 0 if s_warehouse is selected.
let item = frappe.get_doc(cdt, cdn);
if (item.s_warehouse) {
item.allow_zero_valuation_rate = 0;
frappe.model.set_value(cdt, cdn, "allow_zero_valuation_rate", 0);
}
},