Zeiterfassung Update

* Script für tägliche Anpassungen der Mehrstunden
This commit is contained in:
Spitzer Daniel
2024-02-27 17:29:02 +01:00
parent f611f5201a
commit 31c7cf69e3
2 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
<?php
//require 'vendor/autoload.php';
require("../config/config.php");
define('FRONKDB_SQLDEBUG', false);
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED));
require_once(LIBDIR . "/mvcfronk/mfRouter/mfRouter.php");
require_once(LIBDIR . "/mvcfronk/mfBase/mfBaseModel.php");
require_once(LIBDIR . "/mvcfronk/mfBase/mfBaseController.php");
$me = new User(154);
define("INTERNAL_USER_ID", $me->id);
define("INTERNAL_USER_USERNAME", $me->username);
$timerecordingemployees = TimerecordingEmployeeModel::search(['startdate' => 1]);
//var_dump($timerecordingemployees);
foreach ($timerecordingemployees as $timerecordingemployee) {
$employee = new TimerecordingController();
$employee->updatePlushours($timerecordingemployee->user_id);
}