Merge pull request #50076 from frappe/mergify/bp/version-15-hotfix/pr-50073

fix(stock-entry): fetch empty batch for finished item (backport #50073)
This commit is contained in:
rohitwaghchaure
2025-10-14 13:56:41 +05:30
committed by GitHub

View File

@@ -457,7 +457,8 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
(["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 === "Material Receipt" ||
(this.frm.doc.purpose === "Manufacture" && this.item.is_finished_item)))
) {
is_inward = true;
}