fix: Remove warehouse filter on Batch field for Material Receipt

This commit is contained in:
marination 2021-11-02 15:49:58 +05:30
parent 27cbeb920e
commit 048210a8f6

View File

@ -88,7 +88,9 @@ frappe.ui.form.on('Stock Entry', {
}
}
filters["warehouse"] = item.s_warehouse || item.t_warehouse;
if (frm.doc.purpose != "Material Receipt") {
filters["warehouse"] = item.s_warehouse || item.t_warehouse;
}
return {
query : "erpnext.controllers.queries.get_batch_no",