new attribute added to order to correct readWip setStartWIP method

parent 505e5b65
......@@ -57,6 +57,8 @@ class Order(Job):
self.basicsEnded=basicsEnded # flag that informs that the basic components of the order are finished
# flag that informs weather the components needed for the assembly are present in the Assembly Buffer
self.componentsReadyForAssembly = componentsReadyForAssembly
self.decomposed=False
......@@ -751,7 +751,7 @@ def setStartWip():
# XXX if they are not in the WIP the it is possible that the must be set because only an other part of the same order is in the WIP (but no mould)
if not entity.id in WIP.keys() and not decomposed:
pass
if not entity.id in WIP.keys() and decomposed:
if not entity.id in WIP.keys() and decomposed and not entity.order.decomposed:
# perform the default action
setWIP([entity])
# if the entity is in the WIP dict then move it to the station defined.
......@@ -908,6 +908,7 @@ def breakOrderDesing(orderDesign):
if G.orderToBeDecomposed:
from Globals import setWIP
setWIP(G.newlyCreatedComponents) #set the new components as wip
G.orderToBeDecomposed.decomposed=True
# TODO: consider signalling the receivers if any WIP is set now
#reset attributes
G.orderToBeDecomposed=None
......
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