ReadJSWIP updated, not functional anymore. TODO: consider completed column from workplan

parent 209434c0
...@@ -17,6 +17,7 @@ class ReadJSWIP(plugin.InputPreparationPlugin): ...@@ -17,6 +17,7 @@ class ReadJSWIP(plugin.InputPreparationPlugin):
""" inserts the wip as introduced in the GUI to the BOM """ inserts the wip as introduced in the GUI to the BOM
""" """
WIPdata = data["input"].get("wip_spreadsheet",[]) WIPdata = data["input"].get("wip_spreadsheet",[])
workPlanData = data["input"].get("workplan_spreadsheet",[])
try: try:
BOM = data["input"]["BOM"] BOM = data["input"]["BOM"]
except: except:
...@@ -31,12 +32,12 @@ class ReadJSWIP(plugin.InputPreparationPlugin): ...@@ -31,12 +32,12 @@ class ReadJSWIP(plugin.InputPreparationPlugin):
partID = WIPitem[0] partID = WIPitem[0]
if not partID: if not partID:
continue continue
stationID = WIPitem[1] stationID = WIPitem[3]
operatorID = WIPitem[2] operatorID = WIPitem[4]
sequence = WIPitem[3] sequence = WIPitem[1]
WP_id = WIPitem[4] WP_id = WIPitem[2]
start = WIPitem[5] start = WIPitem[5]
end = WIPitem[6] # end = WIPitem[6]
wip[partID] = { wip[partID] = {
"task_id": WP_id, "task_id": WP_id,
"operator": operatorID, "operator": operatorID,
...@@ -45,4 +46,27 @@ class ReadJSWIP(plugin.InputPreparationPlugin): ...@@ -45,4 +46,27 @@ class ReadJSWIP(plugin.InputPreparationPlugin):
"exit": end, "exit": end,
"sequence": sequence "sequence": sequence
} }
return data return data
\ No newline at end of file
'''
{
"name": "Part ID",
"type": "string"
}, {
"name": "Sequence",
"type": "string"
}, {
"name": "task ID",
"type": "string"
}, {
"name": "Station ID",
"type": "string"
}, {
"name": "Personnel ID",
"type": "string"
}, {
"name": "Start time",
"type": "string",
"format": "date-time"
}
'''
\ 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