mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
fix: Set batch values
This commit is contained in:
@@ -269,9 +269,10 @@ erpnext.SerialNoBatchSelector = Class.extend({
|
|||||||
'qty', this.values.warehouse);
|
'qty', this.values.warehouse);
|
||||||
} else if (!this.batch_exists(batch_no)) {
|
} else if (!this.batch_exists(batch_no)) {
|
||||||
row = this.frm.add_child("items", { ...this.item });
|
row = this.frm.add_child("items", { ...this.item });
|
||||||
row.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);
|
||||||
}
|
}
|
||||||
const values = {
|
const values = {
|
||||||
'qty': serial_no.length,
|
'qty': serial_no.length,
|
||||||
|
|||||||
Reference in New Issue
Block a user