mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 00:01:18 +00:00
fix: Price not getting set for first row
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user