mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
fix: conditional check for phantom item if field exists
(cherry picked from commit a5e5365ba9)
This commit is contained in:
@@ -1479,7 +1479,7 @@ def add_non_stock_items_cost(stock_entry, work_order, expense_account, job_card=
|
|||||||
items = {}
|
items = {}
|
||||||
for d in bom.get(table):
|
for d in bom.get(table):
|
||||||
# Phantom item is exploded, so its cost is considered via its components
|
# Phantom item is exploded, so its cost is considered via its components
|
||||||
if d.is_phantom_item:
|
if d.get("is_phantom_item"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
items.setdefault(d.item_code, d.amount)
|
items.setdefault(d.item_code, d.amount)
|
||||||
|
|||||||
Reference in New Issue
Block a user