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 68809159ba
commit b81dfdcd26

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;
}