From f572bc51e185147b9de356d787d8c69d5f49f6a0 Mon Sep 17 00:00:00 2001 From: Sudharsanan11 Date: Sun, 26 Apr 2026 00:01:09 +0530 Subject: [PATCH] fix(stock): show item code in serial and batch selector dialog --- erpnext/public/js/utils/serial_no_batch_selector.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/utils/serial_no_batch_selector.js b/erpnext/public/js/utils/serial_no_batch_selector.js index 4a3f90ad9b4..3e9529d9e2a 100644 --- a/erpnext/public/js/utils/serial_no_batch_selector.js +++ b/erpnext/public/js/utils/serial_no_batch_selector.js @@ -87,7 +87,16 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate { } get_dialog_fields() { - let fields = []; + let fields = [ + { + fieldname: "item_code", + read_only: 1, + fieldtype: "Link", + options: "Item", + label: __("Item Code"), + default: this.item.item_code, + }, + ]; fields.push({ fieldtype: "Link",