mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +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);
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user