mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
Adapted in CIS: Display Zahlungsbestaetigung for FHTW studies only.
If config entry ZAHLUNGSBESTAETIGUNG_ANZEIGEN is true and campus is FH Technikum Wien, only payments of FHTW studies are displayed now. Signed-off-by: Cris <hainberg@technikum-wien.at>
This commit is contained in:
@@ -217,12 +217,22 @@ echo ' <script type="text/javascript" src="../../../vendor/components/jqueryui
|
||||
foreach ($konto->result as $row)
|
||||
{
|
||||
$i=0; //Zaehler fuer Anzahl Gegenbuchungen
|
||||
$count_studiengangszahlung = 0;
|
||||
$buchungsnummern='';
|
||||
|
||||
|
||||
// Für die FHTW sollen nur Zahlungsbestaetigungen von FHTW-Studien angezeigt werden. (Nicht von Lehrgaengen)
|
||||
if (ZAHLUNGSBESTAETIGUNG_ANZEIGEN)
|
||||
{
|
||||
if (defined('CAMPUS_NAME') && CAMPUS_NAME == 'FH Technikum Wien')
|
||||
{
|
||||
$is_lehrgang = $row['parent']->studiengang_kz < 0 ? true : false;
|
||||
if ($is_lehrgang) continue;
|
||||
}
|
||||
}
|
||||
if(!isset($row['parent']))
|
||||
continue;
|
||||
$betrag = $row['parent']->betrag;
|
||||
|
||||
$count_studiengangszahlung ++;
|
||||
|
||||
if(isset($row['childs']))
|
||||
{
|
||||
@@ -271,6 +281,13 @@ echo ' <script type="text/javascript" src="../../../vendor/components/jqueryui
|
||||
}
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
// Wenn die Tabelle keine Eintraege hat, wird eine Tabellenzeile mit entsprechender Information angezeigt.
|
||||
if ($count_studiengangszahlung == 0)
|
||||
{
|
||||
echo "<tr><td colspan='7' style='background-color: white;'>" .$p->t('tools/keineZahlungenVorhanden'). "</td></tr>";
|
||||
}
|
||||
|
||||
echo '</tbody></table>';
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user