From df301a8d00c57f45330ac256f275704e7bd00017 Mon Sep 17 00:00:00 2001 From: Kamil Date: Thu, 4 Jul 2024 10:40:42 +0200 Subject: [PATCH] #444 - fix: fixed button and route for generating overtime reports --- resources/js/Pages/Calendar.vue | 9 ++++++++- routes/web.php | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/js/Pages/Calendar.vue b/resources/js/Pages/Calendar.vue index ec741a2d..1c53ff43 100644 --- a/resources/js/Pages/Calendar.vue +++ b/resources/js/Pages/Calendar.vue @@ -95,15 +95,22 @@ function linkVacationRequest(user){
Pobierz plik Excel + + Pobierz nadgodziny +
diff --git a/routes/web.php b/routes/web.php index 0ac411e2..e00af083 100644 --- a/routes/web.php +++ b/routes/web.php @@ -19,6 +19,7 @@ use Toby\Http\Controllers\LogoutController; use Toby\Http\Controllers\MonthlyUsageController; use Toby\Http\Controllers\OvertimeRequestController; +use Toby\Http\Controllers\OvertimeTimesheetController; use Toby\Http\Controllers\PermissionController; use Toby\Http\Controllers\ResumeController; use Toby\Http\Controllers\SelectYearPeriodController; @@ -198,6 +199,8 @@ Route::post("/requests/{overtimeRequest}/accept-as-technical", [OvertimeRequestController::class, "acceptAsTechnical"]) ->whereNumber("overtimeRequest") ->name("requests.accept-as-technical"); + Route::get("/timesheet/{month}", OvertimeTimesheetController::class) + ->name("overtime-timesheet"); }); });