Revert "fix: Price not getting set for first row"

This reverts commit 92ed11ad16.
This commit is contained in:
Deepesh Garg
2021-01-15 10:05:58 +05:30
parent 0868bf5d45
commit f68e85519c

View File

@@ -223,7 +223,6 @@ erpnext.SerialNoBatchSelector = Class.extend({
frappe.model.set_value(row.doctype, row.name, 'batch_no', batch_no); frappe.model.set_value(row.doctype, row.name, 'batch_no', batch_no);
} else { } else {
row = this.frm.doc.items.find(i => i.batch_no === batch_no); 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) { if (!row) {