mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
bom exploded items grouped by items
This commit is contained in:
@@ -21,6 +21,9 @@ def execute():
|
|||||||
updated_bom = []
|
updated_bom = []
|
||||||
for bom in webnotes.conn.sql("select name from tabBOM where docstatus < 2"):
|
for bom in webnotes.conn.sql("select name from tabBOM where docstatus < 2"):
|
||||||
if bom[0] not in updated_bom:
|
if bom[0] not in updated_bom:
|
||||||
bom_obj = webnotes.get_obj("BOM", bom[0], with_children=1)
|
try:
|
||||||
updated_bom = bom_obj.update_cost_and_exploded_items(updated_bom)
|
bom_obj = webnotes.get_obj("BOM", bom[0], with_children=1)
|
||||||
webnotes.conn.commit()
|
updated_bom = bom_obj.update_cost_and_exploded_items(updated_bom)
|
||||||
|
webnotes.conn.commit()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
Reference in New Issue
Block a user