Skip to content

Commit

Permalink
V 0.9.200 - diverse kleinere Bug eliminiert
Browse files Browse the repository at this point in the history
  • Loading branch information
it-m-h committed Jan 6, 2025
1 parent 1583bf7 commit 00376c3
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ debug/*

js/js_bak
.vscode/*
.ddev/*

# Recycle Bin used on file shares
$RECYCLE.BIN/
Expand Down
4 changes: 2 additions & 2 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/********************************************************************************
* Small Time
/*******************************************************************************
* Version 0.9.131
* Version 0.9.200
* Author: IT-Master
* www.it-master.ch / info@it-master.ch
* Copyright (c), IT-Master, All rights reserved
Expand Down Expand Up @@ -272,7 +272,7 @@ function my_session_start() {
$id = $_GET['delete_user_id'];
$_infotext04 = $_users->delete_user($id, $_users->_array[$id][0]);
header("Location: admin.php?action=delete_user&show=delete&admin_id=1");
} elseif ($_POST['absenden'] == "CANCEL") {
} elseif (@$_POST['absenden'] == "CANCEL") {
$_infotext = getinfotext("User wurde nicht gelöscht.", "td_background_heute");
$_template->_user02 = "sites_admin/admin02.php";
$_template->_user04 = "sites_admin/admin04.php";
Expand Down
3 changes: 2 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ V 0.9.128 10.05.2023 -> declare(strict_types=1); führt zu einer weissen Seite u
V 0.9.129 16.05.2023 -> jquery & jqueryui update - Sicherheitslücken eliminiert
V 0.9.130 16.05.2023 -> unter Linux noch Fehler beim Konvertieren
V 0.9.131 16.05.2023 -> UserDelete - crash fix, PDF mit vielen Zeiten , Darstellung optimiert, Filter bei vielen Usern im Adminbereich optimiert
V 0.9.132 03.01.2025 -> Der 1. Advent wurde falsch berechnet, und somit auch der 2. bis. 4.
V 0.9.132 03.01.2025 -> Der 1. Advent wurde falsch berechnet, und somit auch der 2. bis. 4.
V 0.9.200 07.01.2025 -> diverse kleinere Bug eliminiert
2 changes: 1 addition & 1 deletion include/Settings/smalltime.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
0.9.132
0.9.200
http://www.small.li
14 changes: 8 additions & 6 deletions include/class_month.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*******************************************************************************
* Monatsberechnungen
/*******************************************************************************
* Version 0.9.126
* Version 0.9.200
* Author: IT-Master
* www.it-master.ch / info@it-master.ch
* Copyright (c), IT-Master, All rights reserved
Expand Down Expand Up @@ -199,10 +199,10 @@ private function set_monatsdaten($monat, $jahr)
$this->_MonatsArray[$i][16] = "";
$this->_MonatsArray[$i][17] = 0;
if ($tmp && count($tmp)) {
$this->_MonatsArray[$i][14] = $tmp[1];
$this->_MonatsArray[$i][15] = floatval($tmp[2]); // Anzahl der Absenz
$this->_MonatsArray[$i][16] = $tmp[3];
$this->_MonatsArray[$i][17] = floatval($tmp[4]);
if(isset($tmp[1])) $this->_MonatsArray[$i][14] = $tmp[1];
if(isset($tmp[2])) $this->_MonatsArray[$i][15] = floatval($tmp[2]); // Anzahl der Absenz
if(isset($tmp[3])) $this->_MonatsArray[$i][16] = $tmp[3];
if(isset($tmp[4])) $this->_MonatsArray[$i][17] = floatval($tmp[4]);
}
$tmp1 = 0;
// Liegen die Absenzen oder die Zeiten in der Zukunft, dann nicht berechnen
Expand Down Expand Up @@ -242,7 +242,9 @@ private function set_monatsdaten($monat, $jahr)
//wenn absenz(15) == 1 Prozentual ausrechnen sowie tmp=0(nicht in der Zukunft)
if ($this->_MonatsArray[$i][15] == 1 and $tmp1 == 1) {
$this->_MonatsArray[$i][18] = round((floatval($this->_MonatsArray[$i][8]) - floatval($this->_MonatsArray[$i][13])) * floatval($this->_MonatsArray[$i][17]) / 100, 2);
$this->_MonatsArray[$i][15] = round((floatval($this->_MonatsArray[$i][8]) - floatval($this->_MonatsArray[$i][13])) / floatval($this->_MonatsArray[$i][8]), 2);
if(isset($this->_MonatsArray[$i][8]) && floatval($this->_MonatsArray[$i][8]) != 0){
$this->_MonatsArray[$i][15] = round((floatval($this->_MonatsArray[$i][8]) - floatval($this->_MonatsArray[$i][13])) / floatval($this->_MonatsArray[$i][8]), 2);
}
$this->_MonatsArray[$i][15] = round(floatval($this->_MonatsArray[$i][15]) * floatval($this->_MonatsArray[$i][4]), 2);
$saldo = floatval($this->_MonatsArray[$i][18]) + floatval($this->_MonatsArray[$i][13]);
}
Expand Down
3 changes: 2 additions & 1 deletion include/class_pausen.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Automatische Pausenregelung für Mitarbeiter
* werden von den Arbeitszeiten abgezogen
/*******************************************************************************
* Version 0.9.1
* Version 0.9.200
* Author: IT-Master
* www.it-master.ch / info@it-master.ch
* Copyright (c), IT-Master, All rights reserved
Expand Down Expand Up @@ -52,6 +52,7 @@ public static function get(){
}
public static function save(){
$meldung = "";
$pausen = [];
// ----------------------------------------------------------------------------
// $pausen = get_pausen();
// ----------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion modules/sites_admin/admin04.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
/********************************************************************************
* Small Time
/*******************************************************************************
* Version 0.896
* Version 0.9.200
* Author: IT-Master
* www.it-master.ch / info@it-master.ch
* Copyright (c), IT-Master, All rights reserved
*******************************************************************************/
global $_infotext04;
?>
<table height="100%" width="100%" align="center">
<tr>
Expand Down
3 changes: 2 additions & 1 deletion modules/sites_login/login_mehr_02.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
/********************************************************************************
* Small Time
/*******************************************************************************
* Version 0.896
* Version 0.9.200
* Author: IT-Master
* www.it-master.ch / info@it-master.ch
* Copyright (c), IT-Master, All rights reserved
*******************************************************************************/
global $_infotext02;
if($_settings->_array[13][1]){
get_gruppen();
}else{
Expand Down
6 changes: 3 additions & 3 deletions modules/sites_login/login_mehr_04.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/********************************************************************************
* Small Time
/*******************************************************************************
* Version 0.9.020
* Version 0.9.200
* Author: IT-Master
* www.it-master.ch / info@it-master.ch
* Copyright (c), IT-Master, All rights reserved
Expand Down Expand Up @@ -130,13 +130,13 @@ function setAdmin(){
}

//vSettings - Einstellungen : Anwesenheitsliste anzeigen
if($_settings->_array[13][1] OR $_SESSION['admin']){
if($_settings->_array[13][1] OR @$_SESSION['admin']){
//template unsterstützt Bootstrap
if(strstr($_template->_bootstrap,'true')){
//-------------------------------------------------------------------------------------------------------------
// Anzeige der Anwesenheitsliste
//-------------------------------------------------------------------------------------------------------------
if(!$_grpwahl) $_grpwahl = 1;
if(!isset($_grpwahl) OR !$_grpwahl) $_grpwahl = 1;
if($_grpwahl == -1)$_grpwahl = 1;
$_group = new time_group($_grpwahl);
if(@$id) $_grpwahl = $_group->get_usergroup($id);
Expand Down

0 comments on commit 00376c3

Please sign in to comment.