fix(stock): use row direction for batch filter in serial batch selector

(cherry picked from commit 009c1c8589)
This commit is contained in:
Mihir Kandoi
2026-10-28 14:35:27 +00:00
committed by Mergify
parent 42187820e7
commit b20bf5da95
@@ -466,9 +466,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;
}