fix: Set actual qty and basic rate in SE on warehouse triggers (get_warehouse_details)
- set `actual_qty` on source and target warehouse change
(cherry picked from commit 1ce45f623e)
This commit is contained in:
@@ -468,7 +468,9 @@ frappe.ui.form.on('Stock Entry', {
|
|||||||
},
|
},
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
if (!r.exc) {
|
if (!r.exc) {
|
||||||
$.extend(child, r.message);
|
["actual_qty", "basic_rate"].forEach((field) => {
|
||||||
|
frappe.model.set_value(cdt, cdn, field, (r.message[field] || 0.0));
|
||||||
|
});
|
||||||
frm.events.calculate_basic_amount(frm, child);
|
frm.events.calculate_basic_amount(frm, child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user