Faserplanung/Zeiterfassung
* Zeiterfassung * Faserplanung Koordinatenanzeige bei Rohrverzeichnis bearbeiten hinzugefügt * Migrations
This commit is contained in:
@@ -118,7 +118,23 @@ class TimerecordingEmployeeController extends mfBaseController
|
||||
$data['type'] = trim($r->type);
|
||||
$data['bmd_active'] = trim($r->bmd_active);
|
||||
$data['overtime'] = $overtime;
|
||||
#
|
||||
|
||||
|
||||
if ($r->bpahours) {
|
||||
$bpahours = $r->bpahours;
|
||||
$bpahours = str_replace(',', '.', $bpahours);
|
||||
if (is_numeric($bpahours)) {
|
||||
$bpahours = $bpahours * 3600;
|
||||
$data['bpahours'] = $bpahours;
|
||||
}
|
||||
}
|
||||
if ($r->bpahours_value) {
|
||||
$bpahours_value = $r->bpahours_value;
|
||||
$bpahours_value = str_replace(',', '.', $bpahours_value);
|
||||
if (is_numeric($bpahours_value)) {
|
||||
$data['bpahours_value'] = $bpahours_value;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$data['overtime']) {
|
||||
$data['overtime'] = 0;
|
||||
@@ -149,8 +165,6 @@ class TimerecordingEmployeeController extends mfBaseController
|
||||
} else {
|
||||
$timerecordingemployees = TimerecordingEmployeeModel::create($data);
|
||||
}
|
||||
// var_dump($filestore);
|
||||
// exit;
|
||||
$id = $timerecordingemployees->save();
|
||||
|
||||
if (!$id) {
|
||||
|
||||
@@ -15,6 +15,7 @@ class TimerecordingEmployeeModel
|
||||
private $overtime_now;
|
||||
private $overtime_timestamp;
|
||||
private $bpahours;
|
||||
private $bpahours_value;
|
||||
private $startdate;
|
||||
private $enddate;
|
||||
private $bmd_active;
|
||||
|
||||
Reference in New Issue
Block a user