chore: Add comment above fix for future reference

(cherry picked from commit 48886ee705)
This commit is contained in:
marination
2021-11-02 15:57:41 +05:30
committed by mergify-bot
parent 55aaefb53c
commit bf5f0a226e

View File

@@ -78,6 +78,8 @@ frappe.ui.form.on('Stock Entry', {
}
}
// 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;
}