From 04b8b7694f0774b3f633840db2d85dbd942589d5 Mon Sep 17 00:00:00 2001 From: Sanket322 Date: Tue, 7 Jan 2025 11:43:12 +0530 Subject: [PATCH] fix: minor update --- erpnext/public/js/utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 0c98f423b05..088a3329f1f 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -670,7 +670,6 @@ erpnext.utils.update_child_items = function (opts) { }, onchange: function () { const me = this; - const row_index = me.doc.idx; frm.call({ method: "erpnext.stock.get_item_details.get_item_details", @@ -710,7 +709,7 @@ erpnext.utils.update_child_items = function (opts) { const { qty, price_list_rate: rate, uom, conversion_factor } = r.message; const row = dialog.fields_dict.trans_items.df.data.find( - (doc) => doc.idx == row_index + (doc) => doc.idx == me.doc.idx ); if (row) { Object.assign(row, {