diff --git a/Layout/default/TimerecordingBilling/Detail.php b/Layout/default/TimerecordingBilling/Detail.php index a2da97b7b..53d7b11ef 100644 --- a/Layout/default/TimerecordingBilling/Detail.php +++ b/Layout/default/TimerecordingBilling/Detail.php @@ -122,6 +122,7 @@ hidesearch = [2, 3, 4, 5, 6, 7, 9, 10]; $(document).ready(function () { + $('.buttons-excel').closest('div').append('
'); $('.buttons-excel').closest('div').append(''); $('.buttons-excel').closest('div').append(''); @@ -130,9 +131,19 @@ window.open('= self::getUrl("TimerecordingBilling", "api", ['do' => 'generatebmdexport']) ?>&month=' + $('#month').data('month'), '_blank'); }); $('body').on('click', '#bmd-export-nlz', function () { - window.open('= self::getUrl("TimerecordingBilling", "api", ['do' => 'generatebmdexportnlz']) ?>&month=' + $('#month').data('month'), '_blank'); }); + $('body').on('click', '#month-complete', function () { + if (confirm('Buchung wirklich löschen?')) { + $.post("= self::getUrl("TimerecordingBilling", "api", ['do' => 'completemonth']) ?>", { + month: $.trim($('#month').data('month')), + ajax: 1 + }).done(function (data) { + window.location.href = "= self::getUrl("TimerecordingBilling", "detailClosed", ['month' => $month]) ?>"; + }); + } + + }); }); diff --git a/Layout/default/TimerecordingBilling/DetailClosed.php b/Layout/default/TimerecordingBilling/DetailClosed.php new file mode 100644 index 000000000..a0ecc6bf0 --- /dev/null +++ b/Layout/default/TimerecordingBilling/DetailClosed.php @@ -0,0 +1,325 @@ + + + + +| Mitarbeiter/PersNr. | +Leistungszeiten | +Nichtleistungszeiten | +Iststunden (NLZ+LZ) | +Sollstunden | +Sollabweichung | +Gesamt Überstunden | + superexpertEnabled()): ?> +Black P. Stunden | + +Ü50 | +Ü100 | +Diäten | +Homeoffice | +
|---|---|---|---|---|---|---|---|---|---|---|---|
| + | + | + | + | + | + superexpertEnabled()): ?> + | + + | + | + | + | + | + |
| (= $employee_number ?> + ) = $timerecording->timerecordingEmployee->user->name ?> | += number_format(round($timerecording->ishours / 3600, 2), "2", ",", ".") ?> | += $nlz ?> | += number_format(round($timerecording->ishourssum / 3600, 2), "2", ",", ".") ?> | += number_format(round($timerecording->musthours / 3600, 2), "2", ",", ".") ?> | += (($timerecording->ishourssum - $timerecording->musthours) == 0) ? '' : '' ?>= number_format(round(($timerecording->ishourssum - $timerecording->musthours) / 3600, 2), "2", ",", ".") ?> + = (($timerecording->ishourssum - $timerecording->musthours) > 0) ? '' : '' ?> | += ($timerecording->timerecordingEmployee->overtime_now == 0) ? '' : '' ?>= number_format(round($timerecording->timerecordingEmployee->overtime_now / 3600, 2), "2", ",", ".") ?> + = ($timerecording->timerecordingEmployee->overtime_now > 0) ? '' : '' ?> | + superexpertEnabled()): ?> += number_format(round($timerecording->timerecordingEmployee->bpahours / 3600, 2), "2", ",", ".") ?> | + += number_format(round($timerecording->overtime50free / 3600, 2), "2", ",", ".") ?> | += number_format(round($timerecording->overtime100free / 3600, 2), "2", ",", ".") ?> | += number_format($timerecording->diet, 2, ',', '.') . " €" ?> | += $timerecording->homeoffice ?> Tag(e) | +
| Monat | -Abgeschlossen | -Abgeschlossen am | -Abgeschlossen von | -||||
|---|---|---|---|---|---|---|---|
| - | - | - | - |
| $month]) ?>"> = $month ?> | -- | - | + | Monat | +Abgeschlossen | +Abgeschlossen am | +Abgeschlossen von |
|---|
| Fahrtenbuch | += ($timerecordingcar->timerecording) ? "Ja" : "Nein" ?> | +||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Erstzulassung | = ($timerecordingcar->initial_approval) ? date("m/Y", $timerecordingcar->initial_approval) : "-" ?> | diff --git a/Layout/default/TimerecordingCar/Form.php b/Layout/default/TimerecordingCar/Form.php index 070fdd9b9..bc8f624f6 100644 --- a/Layout/default/TimerecordingCar/Form.php +++ b/Layout/default/TimerecordingCar/Form.php @@ -4,6 +4,10 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "detail") { } else { $cancelUrl = self::getUrl("TimerecordingCar"); } +foreach ($timerecordingusers as $timerecordinguser) { + $timerecordingUsers[$timerecordinguser->name] = $timerecordinguser->id; +} +ksort($timerecordingUsers); ?> @@ -46,6 +50,20 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "detail") { value="= $timerecordingcars->number_plate ?>"/> +||||||||||||||
| Kennzeichen | +Fahrzeugverwalter | Marke | Model/Typ | Erstzulassssung | @@ -58,6 +59,7 @@+ | $timerecordingcar->id]) ?>"> = $timerecordingcar->number_plate ?> | += ($timerecordingcar->user_id) ? $timerecordingcar->user->name : "-" ?> | = $timerecordingcar->brand ?> | = $timerecordingcar->model ?> | = ($timerecordingcar->initial_approval) ? date("m/Y", $timerecordingcar->initial_approval) : "-" ?> | @@ -105,9 +108,9 @@