Преглед на файлове

[Administration] Tableau de bord administrateur

feature/souke
Guillaume Bourgeois преди 9 месеца
родител
ревизия
cfded52661
променени са 2 файла, в които са добавени 5 реда и са изтрити 4 реда
  1. +2
    -2
      backend/controllers/DashboardAdminController.php
  2. +3
    -2
      domain/Order/Order/OrderRepository.php

+ 2
- 2
backend/controllers/DashboardAdminController.php Целия файл

@@ -74,7 +74,7 @@ class DashboardAdminController extends BackendController
'countUsersOnline' => $this->getUserModule()->getRepository()->countUsersOnline(),
'countTicketsAdminOpen' => $this->getTicketModule()->getRepository()->countTicketsAdminStatusOpen(),
'countTicketsAdminUnread' => $this->getTicketModule()->getRepository()->countTicketsAdminUnreadByUser($this->getUserCurrent()),
'statisticsCacheHtml' => \Yii::$app->cache->get('dashboard_statistics') ?: ''
'statisticsCacheHtml' => \Yii::$app->cache->get('dashboard_statistics5') ?: ''
]);
}

@@ -86,7 +86,7 @@ class DashboardAdminController extends BackendController

public function actionAjaxStatisticsHtml()
{
return \Yii::$app->cache->getOrSet('dashboard_statistics', function () {
return \Yii::$app->cache->getOrSet('dashboard_statistics5', function () {
$producerModule = $this->getProducerModule();
$pointSaleModule = $this->getPointSaleModule();
$userModule = $this->getUserModule();

+ 3
- 2
domain/Order/Order/OrderRepository.php Целия файл

@@ -449,9 +449,10 @@ class OrderRepository extends AbstractRepository
public function getTurnoverLastThirtyDays()
{
$now = new \DateTime();

return $this->getTurnoverByDateStartEnd(
$now,
$now->modify('-30 days')
$now->modify('-30 days'),
$now
);
}


Loading…
Отказ
Запис