#62 - vacation request list for approvers #69

Merged
Baakoma merged 29 commits from #62-vacation-request-list-for-approvers into main 2022-03-08 09:25:24 +01:00
Showing only changes of commit afe5834af6 - Show all commits

View File

@@ -26,10 +26,11 @@ class CalculateUserVacationStatsController extends Controller
$used = $vacationStatsRetriever->getUsedVacationDays($user, $yearPeriod);
$pending = $vacationStatsRetriever->getPendingVacationDays($user, $yearPeriod);
$other = $vacationStatsRetriever->getOtherApprovedVacationDays($user, $yearPeriod);
$remaining = $limit - $used - $pending;
return new JsonResponse([
"limit" => $limit,
"remaining" => $limit - $used - $pending,
"remaining" => $remaining,
"used" => $used,
"pending" => $pending,
"other" => $other,