From 6e98b0c9dd53a2835f08076f50607a3ab66ca31a Mon Sep 17 00:00:00 2001
From: kohleman <kohleman>
Date: Fri, 10 Jul 2015 14:57:24 +0000
Subject: [PATCH] use label of Flow cell property 'Run_mode' instead of CODE

SVN: 34344
---
 .../source/Jython/create_QGF_Invoices_simplified.py         | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/deep_sequencing_unit/source/Jython/create_QGF_Invoices_simplified.py b/deep_sequencing_unit/source/Jython/create_QGF_Invoices_simplified.py
index 42b52d673ab..c30e06c9ba9 100644
--- a/deep_sequencing_unit/source/Jython/create_QGF_Invoices_simplified.py
+++ b/deep_sequencing_unit/source/Jython/create_QGF_Invoices_simplified.py
@@ -132,6 +132,7 @@ def writeExcel(myoptions, configMap, service, piName, laneDict, sampleDict, piDi
   '''
   myRows = uniqueRow()
   sequencerVocabulary = getVocabulary(service, "SEQUENCER")
+  runModeVocabulary = getVocabulary(service, "RUN_MODE_VOCABULARY")
   setOfFlowcells = set ()
   try:
     # expecting the old running folder name
@@ -234,6 +235,11 @@ def writeExcel(myoptions, configMap, service, piName, laneDict, sampleDict, piDi
       val = sequencerVocabulary[flowCellProperties[property]]
     else:
       val = flowCellProperties[property]
+    
+    if (property == "RUN_MODE"):
+        val = runModeVocabulary[flowCellProperties[property]]
+    else:
+        val = flowCellProperties[property]
 
     createRow(property, val)
   createRow()
-- 
GitLab