mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
Merge pull request #28198 from frappe/mergify/bp/version-12-hotfix/pr-28195
fix: (ux) Remove warehouse filter on Batch field for Material Receipt (backport #28195)
This commit is contained in:
@@ -78,7 +78,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 {
|
return {
|
||||||
query : "erpnext.controllers.queries.get_batch_no",
|
query : "erpnext.controllers.queries.get_batch_no",
|
||||||
|
|||||||
Reference in New Issue
Block a user