Commit 4ee55a5e authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Jérome Perrin

componentsReadyForAssembly initiation correction in createWIP

parent b2353640
......@@ -363,7 +363,7 @@ def createWIP():
dueDate=float(prodOrder.get('dueDate', '0'))
orderDate=float(prodOrder.get('orderDate', '0'))
isCritical=bool(int(prodOrder.get('isCritical', '0')))
componentsReadyForAssembly = bool((prodOrder.get('componentsReadyForAssembly', '0')))
componentsReadyForAssembly = bool((prodOrder.get('componentsReadyForAssembly', False)))
componentsList=prodOrder.get('componentsList', {})
# keep a reference of all extra properties passed to the job
extraPropertyDict = {}
......@@ -409,7 +409,7 @@ def createWIP():
entity=entityType(**inputDict)
G.EntityList.append(entity)
object=Globals.findObjectById(element['id'])
entity.currentStation=object
entity.currentStation=object
# ToDo order is to defined in a new way
if entityClass=='Dream.Order':
......@@ -420,7 +420,7 @@ def createWIP():
orderDate=float(entity.get('orderDate', '0'))
isCritical=bool(int(entity.get('isCritical', '0')))
basicsEnded=bool(int(entity.get('basicsEnded', '0')))
componentsReadyForAssembly = bool((entity.get('componentsReadyForAssembly', '0')))
componentsReadyForAssembly = bool((entity.get('componentsReadyForAssembly', False)))
# read the manager ID
manager=entity.get('manager', None)
# if a manager ID is assigned then search for the operator with the corresponding ID
......
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