Kalender Anpassungen

- Kalender Freigaben für Conny
This commit is contained in:
Daniel Spitzer
2025-06-23 19:57:02 +02:00
parent a9a4b87a01
commit 2e732505ab
2 changed files with 14 additions and 0 deletions
@@ -42,9 +42,20 @@ class TimerecordingBillingController extends mfBaseController
{
$timerecordingBillings = TimerecordingBillingModel::getAll();
$timerecordingBillingsEmployees = TimerecordingBillingEmployeeModel::getAllOrderbyNameDate();
$timerecordingemployees = TimerecordingEmployeeModel::getAll();
$enddate = strtotime("2024-12-31 23:59:59");
foreach ($timerecordingemployees as $timerecordingemployee) {
if ($timerecordingemployee->bmd_active == 0 && empty($timerecordingemployee->startdate) && empty($timerecordingemployee->enddate)) continue;
echo $timerecordingemployee->user_id . "<br>";
echo $enddate. "<br>";
$holidays[$timerecordingemployee->user_id] = $this->getholidays($timerecordingemployee->user_id, $enddate);
}
$this->layout()->setTemplate("TimerecordingBilling/Overview");
$this->layout()->set("timerecordingbillings", $timerecordingBillings);
$this->layout()->set("timerecordingbillingsemployees", $timerecordingBillingsEmployees);
$this->layout()->set("holidays", $holidays);
}
protected function detailClosedAction($timerecordingBilling)