Commit 2d8f9e99 authored by Georgios Dagkakis's avatar Georgios Dagkakis

add label of spreadsheet in model

parent d2c9ebce
......@@ -10,8 +10,9 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin):
# find the column where the WIP is given
i=0
for element in projectData[0]:
if element=='WIP':
if element=='Completed':
wipColumn=i
projectData[0][i]='WIP'
break
i+=1
if projectData:
......@@ -39,7 +40,7 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin):
requiredCapacity=float(projectData[row+stationRecord][5])
completedCapacityDict[stationId]=completedCapacity
requiredCapacityDict[stationId]=requiredCapacity
# create the wip dictionart
# create the wip dictionary
wipDict=self.calculateWIPDict(data, completedCapacityDict,requiredCapacityDict,projectId)
# change the completed data with the wip data in the spreadsheet
for stationRecord in range(numberOfOperations):
......
......@@ -151,7 +151,7 @@
"type": "number"
},
{
"name": "WIP",
"name": "Completed",
"type": "number"
},
{
......@@ -226,7 +226,7 @@
"plugin_list": [
{
"_class": "dream.plugins.CapacityStations.ChangeWIPSpreadsheet.ChangeWIPSpreadsheet",
"input_id": "createCapacityStationWIP"
"input_id": "projects_spreadsheet"
},
{
"_class": "dream.plugins.CapacityStations.CapacityStationsSetAssemblySpace.CapacityStationsSetAssemblySpace",
......@@ -960,7 +960,7 @@
"Assembly Space",
"Operation",
"Capacity Requirement",
"WIP",
"Completed",
"Earliest Start Date"
],
[
......
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