Zeiterfassung Update/Bugfix

* TimerecordingReportController.php verweist in einer gewissen Datenbank-Eintragskonstellation auf einen ungültigen Array Index. Hab die gesamtsollzeitberechnung temporär ausgeschalten
* Neu Migration (Vorbereiten der DB auf eigenes Ü-Zeitkonto)
* Kalender Feiertagsdescription angepasst
* Geburtstage nun möglich in Personaladministration und Kalender
* Initiale Überstunden sind nun möglich
* Berechnung Urlaubstage nun exakt
This commit is contained in:
Spitzer Daniel
2024-02-26 21:01:50 +01:00
parent 634ba2ee6e
commit 09b4aade1c
11 changed files with 437 additions and 9 deletions
@@ -10,6 +10,14 @@ final class TimerecordingEmployeeAddFieldOvertime extends AbstractMigration
if($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingEmployee", ["signed" => true]);
$table->addColumn("overtime", "integer", ["null" => false, "default" => '0', "after" => "plushours_now"]);
$table->addColumn("overtime_now", "integer", ["null" => false, "default" => '0', "after" => "plushours_now"]);
$table->addColumn("overtime_timestamp", "integer", ["null" => true, "after" => "overtime_now"]);
$table->addColumn("holidays_timestamp", "integer", ["null" => true, "after" => "holidays_now"]);
$table->addColumn("plushours_timestamp", "integer", ["null" => true, "after" => "plushours_now"]);
$table->addColumn("birthday", "integer", ["null" => true, "after" => "startdate"]);
$table->addColumn("bpahours", "integer", ["null" => false, "default" => '0', "after" => "overtime"]);
$table->changeColumn('holidays_now', 'integer', ["null" => false, "default" => '0']);
$table->changeColumn('plushours_now', 'integer', ["null" => false, "default" => '0']);
$table->update();