mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix amount not updated when change rate in material request (#39606)
* fix amount not updated when change rate in material request * make code consistent
This commit is contained in:
committed by
GitHub
parent
50d56db0c2
commit
efade9b9ae
@@ -429,6 +429,9 @@ frappe.ui.form.on("Material Request Item", {
|
|||||||
|
|
||||||
rate: function(frm, doctype, name) {
|
rate: function(frm, doctype, name) {
|
||||||
const item = locals[doctype][name];
|
const item = locals[doctype][name];
|
||||||
|
item.amount = flt(item.qty) * flt(item.rate);
|
||||||
|
frappe.model.set_value(doctype, name, "amount", item.amount);
|
||||||
|
refresh_field("amount", item.name, item.parentfield);
|
||||||
frm.events.get_item_data(frm, item, false);
|
frm.events.get_item_data(frm, item, false);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user