fix: batch selection popup not coming for stock entry
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user