Skip to content

Commit

Permalink
Merge pull request frappe#28195 from marination/se-batch-filter
Browse files Browse the repository at this point in the history
fix: (ux) Remove warehouse filter on Batch field for Material Receipt
  • Loading branch information
marination authored Nov 2, 2021
2 parents 27cbeb9 + 48886ee commit 11c0b37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erpnext/stock/doctype/stock_entry/stock_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ frappe.ui.form.on('Stock Entry', {
}
}

filters["warehouse"] = item.s_warehouse || item.t_warehouse;
// User could want to select a manually created empty batch (no warehouse)
// or a pre-existing batch
if (frm.doc.purpose != "Material Receipt") {
filters["warehouse"] = item.s_warehouse || item.t_warehouse;
}

return {
query : "erpnext.controllers.queries.get_batch_no",
Expand Down

0 comments on commit 11c0b37

Please sign in to comment.