fix: only select serial no that are present in the selected batch (#18726)

This commit is contained in:
Rohan
2019-09-09 13:49:02 +05:30
committed by Nabin Hait
parent 9c428ebfba
commit ad2365502f

View File

@@ -70,8 +70,9 @@ $.extend(erpnext, {
"get_query": function () {
return {
filters: {
item_code:grid_row.doc.item_code,
warehouse:cur_frm.doc.is_return ? null : grid_row.doc.warehouse
item_code: grid_row.doc.item_code,
warehouse: cur_frm.doc.is_return ? null : grid_row.doc.warehouse,
batch_no: grid_row.doc.batch_no || null
}
}
}