Commit 9e98059b authored by Georgios Dagkakis's avatar Georgios Dagkakis

LineGenerationJSON updated to read BOM from inpu

parent cbed34d0
......@@ -358,7 +358,8 @@ def createWIP():
#Read the json data
json_data = G.JSONData
# read from the dictionary the dicts with key 'BOM' (if there are any)
bom=json_data.get('BOM',None)
input=json_data.get('input',{})
bom=input.get('BOM',None)
if bom:
orders=bom.get('productionOrders',[])
# for every order in the productionOrders list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment