Merge pull request #16558 from deepeshgarg007/production_plan

fix: Validation while getting raw materials for production in Production Plan
This commit is contained in:
Nabin Hait 2019-02-05 10:35:16 +05:30 committed by GitHub
commit 1c288ca4ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -567,7 +567,7 @@ def get_items_for_material_requests(doc, sales_order=None, company=None):
else:
item_details = get_subitems(doc, data, item_details, bom_no, company,
include_non_stock_items, include_subcontracted_items, 1, planned_qty=planned_qty)
else:
elif data.get('item_code'):
item_master = frappe.get_doc('Item', data['item_code']).as_dict()
purchase_uom = item_master.purchase_uom or item_master.stock_uom
conversion_factor = 0