mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix: conditional check for phantom item if field exists
This commit is contained in:
@@ -1493,7 +1493,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