fix: allow scrap item with zero qty

(cherry picked from commit 706cb64279)
This commit is contained in:
Rohit Waghchaure
2025-02-13 19:10:21 +05:30
committed by Mergify
parent 698b7a9d00
commit abe5384449

View File

@@ -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")