Skip to content

Commit

Permalink
Merge pull request #18669 from rohitwaghchaure/removed_stock_item_con…
Browse files Browse the repository at this point in the history
…dition_for_sub_contract_v12

fix: allow to subcontract service raw materials
  • Loading branch information
rohitwaghchaure committed Aug 9, 2019
2 parents ed6fb66 + 10e8073 commit 5790fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/buying_controller.py
Expand Up @@ -727,7 +727,7 @@ def get_items_from_bom(item_code, bom, exploded_item=1):
where
t2.parent = t1.name and t1.item = %s
and t1.docstatus = 1 and t1.is_active = 1 and t1.name = %s
and t2.item_code = t3.name and t3.is_stock_item = 1""".format(doctype),
and t2.item_code = t3.name""".format(doctype),
(item_code, bom), as_dict=1)

if not bom_items:
Expand Down

0 comments on commit 5790fab

Please sign in to comment.