From 706cb64279a44a613c0fb7e1feacaac5bee03810 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 --- 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 892f47cac46..bf11efce993 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -2552,7 +2552,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")