Commit 0f7796d6 authored by Georgios Dagkakis's avatar Georgios Dagkakis

BatchDecomposition can also accept Batch as WIP (assuming it has processing time)

parent 7c2fc371
...@@ -1168,7 +1168,7 @@ def createWIP(): ...@@ -1168,7 +1168,7 @@ def createWIP():
G.EntityList.append(B) G.EntityList.append(B)
object=Globals.findObjectById(element['id']) object=Globals.findObjectById(element['id'])
B.unitsToProcess=int(entity.get('unitsToProcess', numberOfUnits)) B.unitsToProcess=int(entity.get('unitsToProcess', numberOfUnits))
B.remainingProcessingTime=float(entity.get('remainingProcessingTime', 0)) B.remainingProcessingTime=entity.get('remainingProcessingTime', {})
B.currentStation=object B.currentStation=object
elif entityClass=='Dream.SubBatch': elif entityClass=='Dream.SubBatch':
...@@ -1197,7 +1197,7 @@ def createWIP(): ...@@ -1197,7 +1197,7 @@ def createWIP():
G.EntityList.append(SB) G.EntityList.append(SB)
object=Globals.findObjectById(element['id']) object=Globals.findObjectById(element['id'])
SB.unitsToProcess=int(entity.get('unitsToProcess', numberOfUnits)) SB.unitsToProcess=int(entity.get('unitsToProcess', numberOfUnits))
SB.remainingProcessingTime=float(entity.get('remainingProcessingTime', 0)) SB.remainingProcessingTime=entity.get('remainingProcessingTime', {})
SB.currentStation=object SB.currentStation=object
if entityClass=='Dream.Order': if entityClass=='Dream.Order':
......
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