mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
fix(stock): use row direction for batch filter in serial batch selector
(cherry picked from commit 009c1c8589)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user