bom exploded items grouped by items

This commit is contained in:
Nabin Hait 2013-06-04 17:11:43 +05:30
parent ecfe1d9cb5
commit 8d7310ac5f

View File

@ -22,4 +22,5 @@ def execute():
for bom in webnotes.conn.sql("select name from tabBOM where docstatus < 2"):
if bom[0] not in updated_bom:
bom_obj = webnotes.get_obj("BOM", bom[0], with_children=1)
updated_bom = bom_obj.update_cost_and_exploded_items(updated_bom)
updated_bom = bom_obj.update_cost_and_exploded_items(updated_bom)
webnotes.conn.commit()