Merge pull request #23095 from nextchamp-saqib/sr-no-selector-fix-hotfix

fix: val is not defined
This commit is contained in:
Rucha Mahabal
2020-08-20 15:01:58 +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();
}
});
if (selected_batches.includes(val)) {
if (selected_batches.includes(batch_no)) {
this.set_value("");
frappe.throw(__(`Batch ${val} already selected.`));
frappe.throw(__(`Batch ${batch_no} already selected.`));
return;
}