chore: Add comment above fix for future reference

This commit is contained in:
marination 2021-11-02 15:57:41 +05:30
parent 048210a8f6
commit 48886ee705

View File

@ -88,6 +88,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;
}