Commit de836b12 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

componentsReadyForAssembly initiation correction in createWIP

parent 8db91ce3
...@@ -363,7 +363,7 @@ def createWIP(): ...@@ -363,7 +363,7 @@ def createWIP():
dueDate=float(prodOrder.get('dueDate', '0')) dueDate=float(prodOrder.get('dueDate', '0'))
orderDate=float(prodOrder.get('orderDate', '0')) orderDate=float(prodOrder.get('orderDate', '0'))
isCritical=bool(int(prodOrder.get('isCritical', '0'))) isCritical=bool(int(prodOrder.get('isCritical', '0')))
componentsReadyForAssembly = bool((prodOrder.get('componentsReadyForAssembly', '0'))) componentsReadyForAssembly = bool((prodOrder.get('componentsReadyForAssembly', False)))
componentsList=prodOrder.get('componentsList', {}) componentsList=prodOrder.get('componentsList', {})
# keep a reference of all extra properties passed to the job # keep a reference of all extra properties passed to the job
extraPropertyDict = {} extraPropertyDict = {}
...@@ -420,7 +420,7 @@ def createWIP(): ...@@ -420,7 +420,7 @@ def createWIP():
orderDate=float(entity.get('orderDate', '0')) orderDate=float(entity.get('orderDate', '0'))
isCritical=bool(int(entity.get('isCritical', '0'))) isCritical=bool(int(entity.get('isCritical', '0')))
basicsEnded=bool(int(entity.get('basicsEnded', '0'))) basicsEnded=bool(int(entity.get('basicsEnded', '0')))
componentsReadyForAssembly = bool((entity.get('componentsReadyForAssembly', '0'))) componentsReadyForAssembly = bool((entity.get('componentsReadyForAssembly', False)))
# read the manager ID # read the manager ID
manager=entity.get('manager', None) manager=entity.get('manager', None)
# if a manager ID is assigned then search for the operator with the corresponding ID # 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