From 0868bf5d4504712208075f0e8fce028dbc1eeeaf Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Fri, 15 Jan 2021 10:05:37 +0530 Subject: [PATCH] Revert "fix: Set batch values" This reverts commit 0bbb55d6ccab42d86acbe4d6958c27ee61784486. --- erpnext/public/js/utils/serial_no_batch_selector.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/public/js/utils/serial_no_batch_selector.js b/erpnext/public/js/utils/serial_no_batch_selector.js index 297012d78fe..74e832482df 100644 --- a/erpnext/public/js/utils/serial_no_batch_selector.js +++ b/erpnext/public/js/utils/serial_no_batch_selector.js @@ -269,10 +269,9 @@ erpnext.SerialNoBatchSelector = Class.extend({ 'qty', this.values.warehouse); } else if (!this.batch_exists(batch_no)) { row = this.frm.add_child("items", { ...this.item }); - frappe.model.set_value(row.doctype, row.name, 'batch_no', batch_no); + row.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); } const values = { 'qty': serial_no.length,