From 92ed11ad162df90353b3285d98cec502dd0ca96a Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Mon, 28 Dec 2020 23:20:20 +0530 Subject: [PATCH] fix: Price not getting set for first row --- erpnext/public/js/utils/serial_no_batch_selector.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/public/js/utils/serial_no_batch_selector.js b/erpnext/public/js/utils/serial_no_batch_selector.js index cd2f9509e5b..74e832482df 100644 --- a/erpnext/public/js/utils/serial_no_batch_selector.js +++ b/erpnext/public/js/utils/serial_no_batch_selector.js @@ -223,6 +223,7 @@ erpnext.SerialNoBatchSelector = Class.extend({ frappe.model.set_value(row.doctype, row.name, 'batch_no', batch_no); } else { row = this.frm.doc.items.find(i => i.batch_no === batch_no); + frappe.model.set_value(row.doctype, row.name, 'batch_no', batch_no); } if (!row) {