fix: batch selection popup not coming for stock entry

This commit is contained in:
Rohit Waghchaure
2020-03-24 11:34:44 +05:30
parent b4909b8fd2
commit 5c1404e878
2 changed files with 8 additions and 3 deletions

View File

@@ -313,11 +313,15 @@ erpnext.SerialNoBatchSelector = Class.extend({
frappe.throw(__(`Batch ${val} already selected.`));
return;
}
let batch_number = me.item.batch_no ||
this.grid_row.on_grid_fields_dict.batch_no.get_value();
if (me.warehouse_details.name) {
frappe.call({
method: 'erpnext.stock.doctype.batch.batch.get_batch_qty',
args: {
batch_no: me.item.batch_no,
batch_no: batch_number,
warehouse: me.warehouse_details.name,
item_code: me.item_code
},