Skip to content

Commit

Permalink
chore: Add comment above fix for future reference
Browse files Browse the repository at this point in the history
  • Loading branch information
marination committed Nov 2, 2021
1 parent 048210a commit 48886ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/stock/doctype/stock_entry/stock_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 48886ee

Please sign in to comment.