From 39403a5ef3bbdc403e3f3f60ad41aa7161c2ed7d Mon Sep 17 00:00:00 2001 From: Vishnu Priya Baskaran <145791817+ervishnucs@users.noreply.github.com> Date: Tue, 11 Aug 2026 22:50:28 +0530 Subject: [PATCH] refactor:fix item property updates in POS and transactions, and add styling (#57189) Co-authored-by: Afsal Syed --- erpnext/public/scss/point-of-sale.scss | 1 + .../selling/page/point_of_sale/pos_item_details.js | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/erpnext/public/scss/point-of-sale.scss b/erpnext/public/scss/point-of-sale.scss index 5ef6e8fc5db..c16632d9a2f 100644 --- a/erpnext/public/scss/point-of-sale.scss +++ b/erpnext/public/scss/point-of-sale.scss @@ -837,6 +837,7 @@ flex-direction: column; padding: var(--padding-lg); padding-top: var(--padding-md); + overflow-y: auto; > .item-details-header { display: flex; diff --git a/erpnext/selling/page/point_of_sale/pos_item_details.js b/erpnext/selling/page/point_of_sale/pos_item_details.js index 322c82384fa..ae298128a3b 100644 --- a/erpnext/selling/page/point_of_sale/pos_item_details.js +++ b/erpnext/selling/page/point_of_sale/pos_item_details.js @@ -84,6 +84,17 @@ erpnext.PointOfSale.ItemDetails = class { this.item_row = item; this.currency = this.events.get_frm().doc.currency; + if (item.has_serial_no == null || item.has_batch_no == null) { + const r = await frappe.db.get_value("Item", item.item_code, [ + "has_serial_no", + "has_batch_no", + ]); + if (r && r.message) { + item.has_serial_no = r.message.has_serial_no; + item.has_batch_no = r.message.has_batch_no; + } + } + this.current_item = item; this.render_dom(item);