From 6f1cfdb1de987303c153a41cc4b26517258f1e54 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 (cherry picked from commit 69e94248c1364e62aeb6b75b67322bf7f40b32b0) --- 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 6833036122f..80bc1a34d0d 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.js +++ b/erpnext/stock/doctype/stock_entry/stock_entry.js @@ -914,6 +914,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,