Merge pull request #23094 from nextchamp-saqib/sr-no-selector-fix-pre-release

fix: val is not defined
This commit is contained in:
Rucha Mahabal
2020-08-20 15:01:28 +05:30
committed by GitHub

View File

@@ -348,9 +348,9 @@ erpnext.SerialNoBatchSelector = Class.extend({
return row.on_grid_fields_dict.batch_no.get_value(); return row.on_grid_fields_dict.batch_no.get_value();
} }
}); });
if (selected_batches.includes(val)) { if (selected_batches.includes(batch_no)) {
this.set_value(""); this.set_value("");
frappe.throw(__(`Batch ${val} already selected.`)); frappe.throw(__(`Batch ${batch_no} already selected.`));
return; return;
} }