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