From 01e11d94533e3132ed3c828a7e6857f18a84fd0a Mon Sep 17 00:00:00 2001 From: Manfred Kindl Date: Tue, 19 May 2020 17:47:33 +0200 Subject: [PATCH] =?UTF-8?q?Hack=20f=C3=BCr=20BEW-BB,=20wenn=20auch=20BEW-D?= =?UTF-8?q?L-Ergebnisse=20vorliegen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vilesci/stammdaten/auswertung_fhtw.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vilesci/stammdaten/auswertung_fhtw.php b/vilesci/stammdaten/auswertung_fhtw.php index 4150bc18b..752467913 100644 --- a/vilesci/stammdaten/auswertung_fhtw.php +++ b/vilesci/stammdaten/auswertung_fhtw.php @@ -1504,6 +1504,15 @@ if (isset($_REQUEST['reihungstest']) || isset($_POST['rtauswsubmit'])) $gebiete_arr = array(); while ($row = $db->db_fetch_object($result)) { + // Hack für BEW-BB, wenn auch BEW-DL-Ergebnisse vorliegen + if ($row->stg_kurzbz == 'BEW' && $row->orgform_kurzbz == 'BB') + { + if ($row->gebiet_id == 2 || $row->gebiet_id == 44 || $row->gebiet_id == 95 || $row->gebiet_id == 10) + { + continue; + } + } + if (!isset($ergebnis[$row->prestudent_id])) { $ergebnis[$row->prestudent_id] = new stdClass(); @@ -1578,6 +1587,11 @@ if (isset($_REQUEST['reihungstest']) || isset($_POST['rtauswsubmit'])) { $gebiete_arr[$row->prestudent_id][] = $row->gebiet_id; + // Gewichtung bei BEW BB bei Schlussfolgerungen manuell korrigieren, da es zur falschen Berechnung kommt, wenn es auch BEW-DL Ergebnisse gibt + if ($row->stg_kurzbz == 'BEW' && $row->orgform_kurzbz == 'BB' && $row->gebiet_id == 4) + { + $row->gewicht = 2; + } // Gesamtpunkte if (isset($ergebnis[$row->prestudent_id]->gesamt)) {