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

(cherry picked from commit de83511091)

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
mergify[bot]
2022-04-04 17:31:26 +05:30
committed by GitHub
parent b524e657e2
commit 012cab80bf

View File

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