From abe5384449ac151a336f901ac5367e27aa6f484a Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 13 Feb 2025 19:10:21 +0530 Subject: [PATCH] fix: allow scrap item with zero qty (cherry picked from commit 706cb64279a44a613c0fb7e1feacaac5bee03810) --- erpnext/stock/doctype/stock_entry/stock_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index 95d6d7079b7..65db490e7b5 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -2417,7 +2417,7 @@ class StockEntry(StockController): item_row = item_dict[d] child_qty = flt(item_row["qty"], precision) - if not self.is_return and child_qty <= 0: + if not self.is_return and child_qty <= 0 and not item_row.get("is_scrap_item"): continue se_child = self.append("items")