Zeiterfassungs Update
* Implementerung Fahrzeugverwaltung * neue Buchungsart Fahrtenbuch * Diverse Bugfixes
This commit is contained in:
@@ -11,6 +11,10 @@ class TimerecordingModel
|
||||
private $timerecordingCategory_id;
|
||||
private $businesstrip;
|
||||
private $businesstrip_info;
|
||||
private $timerecordingCar_id;
|
||||
private $mileage_start;
|
||||
private $mileage_end;
|
||||
|
||||
private $homeoffice;
|
||||
private $comment;
|
||||
private $approved;
|
||||
@@ -174,7 +178,20 @@ class TimerecordingModel
|
||||
$where .= " AND `start` >= $start AND `days` !=0 ORDER by start ASC";
|
||||
}
|
||||
}
|
||||
if (array_key_exists("timerecordingCar_id", $filter)) {
|
||||
$timerecordingCar = $filter['timerecordingCar_id'];
|
||||
|
||||
if (is_numeric($timerecordingCar)) {
|
||||
$where .= " AND `timerecordingCar_id` = $timerecordingCar ORDER by mileage_end DESC LIMIT 1";
|
||||
}
|
||||
}
|
||||
if (array_key_exists("timerecordingCar_id_all", $filter)) {
|
||||
$timerecordingCar = $filter['timerecordingCar_id_all'];
|
||||
|
||||
if (is_numeric($timerecordingCar)) {
|
||||
$where .= " AND `timerecordingCar_id` = $timerecordingCar ORDER by mileage_start ASC";
|
||||
}
|
||||
}
|
||||
|
||||
if (array_key_exists("starttime", $filter) && array_key_exists("endtime", $filter)) {
|
||||
$starttime = $filter['starttime'];
|
||||
|
||||
Reference in New Issue
Block a user