Commit a768dd81 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in Batches WIP plugin

parent ae851e09
...@@ -224,5 +224,24 @@ class BatchesWIPSpreadsheet(plugin.InputPreparationPlugin): ...@@ -224,5 +224,24 @@ class BatchesWIPSpreadsheet(plugin.InputPreparationPlugin):
"unitsToProcess": unitsToProcess, "unitsToProcess": unitsToProcess,
"parentBatchName":'Batch_'+parentBatchId+"_WIP" "parentBatchName":'Batch_'+parentBatchId+"_WIP"
}) })
# if it is a standard BatchScrapMachine
elif nodes[stationId]['_class'] == 'Dream.BatchScrapMachine':
if _class=='Dream.Batch':
nodes[stationId]['wip'].append({
"_class": _class,
"id": partId,
"name":'Batch'+parentBatchId+'_SubBatch_'+partId+'_wip',
"numberOfUnits":numberOfUnits,
"parentBatchId":parentBatchId,
"unitsToProcess": unitsToProcess,
"parentBatchName":'Batch_'+parentBatchId+"_WIP"
})
elif _class=='Dream.SubBatch':
nodes[stationId]['wip'].append({
"_class": _class,
"id": partId,
"name":'Batch_'+partId+'_wip',
"numberOfUnits":numberOfUnits,
"unitsToProcess": unitsToProcess,
})
return data return data
\ No newline at end of file
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