From 920a3ff0b8b1a040b135d649b294572fe38dfebe Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Wed, 4 Apr 2018 18:06:19 +0530 Subject: [PATCH] [Fix] POS freeze when rate button pushed --- erpnext/selling/page/point_of_sale/point_of_sale.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.js b/erpnext/selling/page/point_of_sale/point_of_sale.js index 6d8d1b74c4..5c4bd166dc 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.js +++ b/erpnext/selling/page/point_of_sale/point_of_sale.js @@ -886,9 +886,11 @@ class POSCart { const is_stock_item = this.get_item_details(item.item_code).is_stock_item; const rate = format_currency(item.rate, this.frm.doc.currency); const indicator_class = (!is_stock_item || item.actual_qty >= item.qty) ? 'green' : 'red'; + const batch_no = item.batch_no || ''; + return `
+ data-batch-no="${batch_no}" title="Item: ${item.item_name} Available Qty: ${item.actual_qty}">
${item.item_name}