feat: default statistics filter to a rolling 12-month window
This commit is contained in:
@@ -35,8 +35,8 @@ class ApplicationsByDestinationController extends AbstractController
|
||||
}
|
||||
|
||||
$statistics = $this->applicationRepository->getApplicationsByDestination(
|
||||
$filterDto->getDateFrom(),
|
||||
$filterDto->getDateTo(),
|
||||
$filterDto->getEffectiveDateFrom(),
|
||||
$filterDto->getEffectiveDateTo(),
|
||||
);
|
||||
|
||||
return $this->render('administrative/statistics/applications_by_destination.html.twig', [
|
||||
|
||||
@@ -35,8 +35,8 @@ class FeedbackByDestinationController extends AbstractController
|
||||
}
|
||||
|
||||
$statistics = $this->dispositionRepository->getFeedbackStatisticsByNormalizedHotelCode(
|
||||
$filterDto->getDateFrom(),
|
||||
$filterDto->getDateTo(),
|
||||
$filterDto->getEffectiveDateFrom(),
|
||||
$filterDto->getEffectiveDateTo(),
|
||||
);
|
||||
|
||||
return $this->render('administrative/statistics/feedback_by_destination.html.twig', [
|
||||
|
||||
@@ -35,8 +35,8 @@ class FeedbackRatingsByDestinationController extends AbstractController
|
||||
}
|
||||
|
||||
$statistics = $this->feedbackRepository->getAverageRatingsByDestinationAndFeedbackSet(
|
||||
$filterDto->getDateFrom(),
|
||||
$filterDto->getDateTo(),
|
||||
$filterDto->getEffectiveDateFrom(),
|
||||
$filterDto->getEffectiveDateTo(),
|
||||
);
|
||||
|
||||
return $this->render('administrative/statistics/feedback_ratings_by_destination.html.twig', [
|
||||
|
||||
@@ -35,8 +35,8 @@ class FeedbackRatingsController extends AbstractController
|
||||
}
|
||||
|
||||
$statistics = $this->feedbackRepository->getAverageRatingsByQuestionAndFeedbackSet(
|
||||
$filterDto->getDateFrom(),
|
||||
$filterDto->getDateTo(),
|
||||
$filterDto->getEffectiveDateFrom(),
|
||||
$filterDto->getEffectiveDateTo(),
|
||||
);
|
||||
|
||||
// Prepare chart data for each feedback set
|
||||
|
||||
Reference in New Issue
Block a user