fix: Price not getting set for first row

This commit is contained in:
Deepesh Garg
2020-12-28 23:20:20 +05:30
parent a679d43722
commit 6d3e843f07

View File

@@ -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) {