mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
fix: fetch bom_no when updating items in sales order
(cherry picked from commit 508727a57a)
# Conflicts:
# erpnext/public/js/utils.js
This commit is contained in:
@@ -692,7 +692,18 @@ erpnext.utils.update_child_items = function (opts) {
|
||||
},
|
||||
callback: function (r) {
|
||||
if (r.message) {
|
||||
<<<<<<< HEAD
|
||||
const { qty, price_list_rate: rate, uom, conversion_factor } = r.message;
|
||||
=======
|
||||
const {
|
||||
qty,
|
||||
price_list_rate: rate,
|
||||
uom,
|
||||
conversion_factor,
|
||||
item_name,
|
||||
default_bom,
|
||||
} = r.message;
|
||||
>>>>>>> 508727a57a (fix: fetch bom_no when updating items in sales order)
|
||||
|
||||
const row = dialog.fields_dict.trans_items.df.data.find(
|
||||
(doc) => doc.idx == me.doc.idx
|
||||
@@ -703,6 +714,11 @@ erpnext.utils.update_child_items = function (opts) {
|
||||
uom: me.doc.uom || uom,
|
||||
qty: me.doc.qty || qty,
|
||||
rate: me.doc.rate || rate,
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
item_name: item_name,
|
||||
bom_no: default_bom,
|
||||
>>>>>>> 508727a57a (fix: fetch bom_no when updating items in sales order)
|
||||
});
|
||||
dialog.fields_dict.trans_items.grid.refresh();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user