fix: list lookup with undefined variable (#25210)
Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
This commit is contained in:
parent
640b5e00ce
commit
c50fbc6897
@ -353,9 +353,9 @@ erpnext.SerialNoBatchSelector = Class.extend({
|
||||
return row.on_grid_fields_dict.batch_no.get_value();
|
||||
}
|
||||
});
|
||||
if (selected_batches.includes(val)) {
|
||||
if (selected_batches.includes(batch_no)) {
|
||||
this.set_value("");
|
||||
frappe.throw(__('Batch {0} already selected.', [val]));
|
||||
frappe.throw(__('Batch {0} already selected.', [batch_no]));
|
||||
}
|
||||
|
||||
if (me.warehouse_details.name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user