#43 - cr fix
This commit is contained in:
		@@ -26,10 +26,11 @@ class CalculateUserVacationStatsController extends Controller
 | 
				
			|||||||
        $used = $vacationStatsRetriever->getUsedVacationDays($user, $yearPeriod);
 | 
					        $used = $vacationStatsRetriever->getUsedVacationDays($user, $yearPeriod);
 | 
				
			||||||
        $pending = $vacationStatsRetriever->getPendingVacationDays($user, $yearPeriod);
 | 
					        $pending = $vacationStatsRetriever->getPendingVacationDays($user, $yearPeriod);
 | 
				
			||||||
        $other = $vacationStatsRetriever->getOtherApprovedVacationDays($user, $yearPeriod);
 | 
					        $other = $vacationStatsRetriever->getOtherApprovedVacationDays($user, $yearPeriod);
 | 
				
			||||||
 | 
					        $remaining = $limit - $used - $pending;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return new JsonResponse([
 | 
					        return new JsonResponse([
 | 
				
			||||||
            "limit" => $limit,
 | 
					            "limit" => $limit,
 | 
				
			||||||
            "remaining" => $limit - $used - $pending,
 | 
					            "remaining" => $remaining,
 | 
				
			||||||
            "used" => $used,
 | 
					            "used" => $used,
 | 
				
			||||||
            "pending" => $pending,
 | 
					            "pending" => $pending,
 | 
				
			||||||
            "other" => $other,
 | 
					            "other" => $other,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user