mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 20:05:09 +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 = {}
|
||||
for d in bom.get(table):
|
||||
# Phantom item is exploded, so its cost is considered via its components
|
||||
if d.is_phantom_item:
|
||||
if d.get("is_phantom_item"):
|
||||
continue
|
||||
|
||||
items.setdefault(d.item_code, d.amount)
|
||||
|
||||
Reference in New Issue
Block a user