mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
Merge pull request #45903 from rohitwaghchaure/fixed-support-31510
fix: allow scrap item with zero qty
This commit is contained in:
@@ -2552,7 +2552,7 @@ class StockEntry(StockController):
|
|||||||
item_row = item_dict[d]
|
item_row = item_dict[d]
|
||||||
|
|
||||||
child_qty = flt(item_row["qty"], precision)
|
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
|
continue
|
||||||
|
|
||||||
se_child = self.append("items")
|
se_child = self.append("items")
|
||||||
|
|||||||
Reference in New Issue
Block a user