From 69e94248c1364e62aeb6b75b67322bf7f40b32b0 Mon Sep 17 00:00:00 2001 From: Sudharsanan11 Date: Fri, 26 Dec 2025 18:25:43 +0530 Subject: [PATCH] fix(stock): remove item image to avoid setting the image of previous item --- erpnext/stock/doctype/stock_entry/stock_entry.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.js b/erpnext/stock/doctype/stock_entry/stock_entry.js index 10cdde6e37a..d113ccdf7f1 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.js +++ b/erpnext/stock/doctype/stock_entry/stock_entry.js @@ -944,6 +944,9 @@ frappe.ui.form.on("Stock Entry Detail", { item_code(frm, cdt, cdn) { var d = locals[cdt][cdn]; + // since some items may not have image, so empty the image field to avoid setting the image of previous item + d.image = ""; + if (d.item_code) { var args = { item_code: d.item_code,