Merge pull request #62842 from mihir-kandoi/fix/issue-62835

fix(stock): use row direction for batch filter in serial batch selector
This commit is contained in:
mergify[bot]
2026-10-28 14:35:03 +00:00
committed by GitHub
@@ -487,9 +487,7 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
if (
(["Purchase Receipt", "Purchase Invoice"].includes(this.frm.doc.doctype) &&
!this.frm.doc.is_return) ||
(this.frm.doc.doctype === "Stock Entry" &&
(this.frm.doc.purpose === "Material Receipt" ||
(this.frm.doc.purpose === "Manufacture" && this.item.is_finished_item)))
(this.frm.doc.doctype === "Stock Entry" && !this.item.s_warehouse)
) {
is_inward = true;
}