From 7fe2f3ef396f7b4bd869e86b3c229dfa7446c192 Mon Sep 17 00:00:00 2001 From: Cris Date: Thu, 15 Oct 2020 11:03:16 +0200 Subject: [PATCH 01/10] Adapted span-width of date in each tablerow Allows nice align of error messages. Signed-off-by: Cris --- cis/private/tools/zeitaufzeichnung.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cis/private/tools/zeitaufzeichnung.php b/cis/private/tools/zeitaufzeichnung.php index 71fdda2bb..054cf32e2 100644 --- a/cis/private/tools/zeitaufzeichnung.php +++ b/cis/private/tools/zeitaufzeichnung.php @@ -1532,7 +1532,7 @@ if($projekt->getProjekteMitarbeiter($user, true)) $langindex = 1; else $langindex = 2; - echo ''.$tagbez[$langindex][$datum->formatDatum($tag,'N')].' '.$datum->formatDatum($tag,'d.m.Y').' '.$zeitsperre_text.''.$pausefehlt_str; + echo ''.$tagbez[$langindex][$datum->formatDatum($tag,'N')].' '.$datum->formatDatum($tag,'d.m.Y').''.$zeitsperre_text.''.$pausefehlt_str; if ($ersumme != '00:00') $erstr = ' (+ '.$ersumme.' ER)'; else From 57722553eca12b8db3aecef0ef4424cd0e991309 Mon Sep 17 00:00:00 2001 From: KarpAlex Date: Wed, 13 Jan 2021 00:05:03 +0100 Subject: [PATCH 02/10] - new funktion type kstzuordnung for cost center assignment in public.tbl_funktion --- system/dbupdate_3.3.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/system/dbupdate_3.3.php b/system/dbupdate_3.3.php index 2336ebad4..d3672ffc7 100644 --- a/system/dbupdate_3.3.php +++ b/system/dbupdate_3.3.php @@ -4465,6 +4465,20 @@ if($result = $db->db_query("SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE } } +// Add new funktion type kstzuordnung for cost center assignment in public.tbl_funktion +if ($result = @$db->db_query("SELECT 1 FROM public.tbl_funktion WHERE funktion_kurzbz = 'kstzuordnung';")) +{ + if ($db->db_num_rows($result) == 0) + { + $qry = "INSERT INTO public.tbl_funktion(funktion_kurzbz, beschreibung, aktiv, fachbereich, semester) VALUES('kstzuordnung','Standardkostenstelle Zuordnung',true,false,false);"; + + if (!$db->db_query($qry)) + echo 'public.tbl_funktion '.$db->db_last_error().'
'; + else + echo '
public.tbl_funktion: Added funktion kstzuordnung
'; + } +} + // *** Pruefung und hinzufuegen der neuen Attribute und Tabellen echo '

Pruefe Tabellen und Attribute!

'; From d84da96669cf4da3324eed26b4dfd0c488ce14d2 Mon Sep 17 00:00:00 2001 From: OliiverHacker Date: Mon, 8 Feb 2021 09:57:08 +0100 Subject: [PATCH 03/10] display Feiertage and Wochenenden --- cis/private/profile/urlaubstool.php | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/cis/private/profile/urlaubstool.php b/cis/private/profile/urlaubstool.php index 11620a99a..141f9be9e 100644 --- a/cis/private/profile/urlaubstool.php +++ b/cis/private/profile/urlaubstool.php @@ -464,7 +464,6 @@ if ((isset($wmonat) || isset($wmonat))&&(isset($wjahr) || isset($wjahr))) { if($hgfarbe[$i]!='#FFFC7F' && $hgfarbe[$i]!='#bbb' && $hgfarbe[$i]!='#CDDDEE') { - $hgfarbe[$i]='#E9ECEE'; $datensatz[$i]=0; $freigabevon[$i]=$row->freigabevon; @@ -761,11 +760,25 @@ for ($i=0;$i<6;$i++) echo "\n"; if(strlen(stristr($tage[$j+7*$i],"."))>0) { - echo ''; + if($j%6==0 || $j==7) + { + echo ''; + } + else + { + echo ''; + } } else { - echo ''; + if($j%6==0 || $j==7) + { + echo ''; + } + else + { + echo ''; + } } if($tage[$j+7*$i]!='') { @@ -781,11 +794,11 @@ for ($i=0;$i<6;$i++) echo ''.$tage[$j+7*$i].'
'; if(strlen(stristr($tage[$j+7*$i],"."))>0) { - echo ''; + echo ''; } else { - echo ''; + echo ''; } } else From 544def7f5a9b2c8ec242ec6dce3661abe36c1776 Mon Sep 17 00:00:00 2001 From: KarpAlex Date: Tue, 9 Feb 2021 04:41:14 +0100 Subject: [PATCH 04/10] - Organisationseinheit Dropdown in zeitaufzeichnung is limited by funktionen, only dizipl. Zuordnung, standardkostenstelle Zuordnung and funktionale Zuordnungen are shown --- cis/private/tools/zeitaufzeichnung.php | 2 +- include/organisationseinheit.class.php | 72 ++++++++++++++++---------- 2 files changed, 45 insertions(+), 29 deletions(-) diff --git a/cis/private/tools/zeitaufzeichnung.php b/cis/private/tools/zeitaufzeichnung.php index 71fdda2bb..8c348a848 100644 --- a/cis/private/tools/zeitaufzeichnung.php +++ b/cis/private/tools/zeitaufzeichnung.php @@ -1145,7 +1145,7 @@ if($projekt->getProjekteMitarbeiter($user, true)) echo ''.$p->t("zeitaufzeichnung/organisationseinheiten").'