bom exploded items grouped by items
This commit is contained in:
parent
ad600cce22
commit
89ab4719ff
@ -20,9 +20,6 @@ import webnotes
|
|||||||
def execute():
|
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"):
|
||||||
webnotes.errprint(bom[0])
|
|
||||||
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)
|
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.errprint(updated_bom)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user