Zeiterfassung

* Personaladmistration um Feld SV-Nummer erweitert
This commit is contained in:
Daniel Spitzer
2025-08-05 15:56:48 +02:00
parent b3030884c5
commit d4b405627c
6 changed files with 58 additions and 8 deletions

View File

@@ -204,9 +204,11 @@ class TimerecordingEmployeeController extends mfBaseController
if (!$data['overtime']) {
$data['overtime'] = 0;
}
if (!$data['bmd_active']) {
$data['bmd_active'] = 0;
}
if (!$data['enddate']) {
$data['enddate'] = null;
}
@@ -216,6 +218,13 @@ class TimerecordingEmployeeController extends mfBaseController
} else {
$data['birthday'] = null;
}
if ($r->insurance_number) {
$data['insurance_number'] = $r->insurance_number;
} else {
$data['insurance_number'] = null;
}
if (!$data['user_id']) {
$this->layout()->setFlash("Mitarbeiter darf nicht leer sein", "error");
$this->redirect("TimerecordingEmployee");