fix: Remove warehouse filter on Batch field for Material Receipt

(cherry picked from commit 048210a8f6)
This commit is contained in:
marination
2021-11-02 15:49:58 +05:30
committed by mergify-bot
parent 982960fc0a
commit 68809159ba

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",