mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 03:03:50 +00:00
fix(stock-entry): fetch empty batch for finished item
(cherry picked from commit 74a7ddf66d)
This commit is contained in:
@@ -457,7 +457,8 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
|
|||||||
(["Purchase Receipt", "Purchase Invoice"].includes(this.frm.doc.doctype) &&
|
(["Purchase Receipt", "Purchase Invoice"].includes(this.frm.doc.doctype) &&
|
||||||
!this.frm.doc.is_return) ||
|
!this.frm.doc.is_return) ||
|
||||||
(this.frm.doc.doctype === "Stock Entry" &&
|
(this.frm.doc.doctype === "Stock Entry" &&
|
||||||
this.frm.doc.purpose === "Material Receipt")
|
(this.frm.doc.purpose === "Material Receipt" ||
|
||||||
|
(this.frm.doc.purpose === "Manufacture" && this.item.is_finished_item)))
|
||||||
) {
|
) {
|
||||||
is_inward = true;
|
is_inward = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user