Browse Source

Correction : ajout id_etablissement dans la récupération des commandes dans la page statistiques

master
keun 7 years ago
parent
commit
f225f9c2ed
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      backend/controllers/StatsController.php

+ 1
- 0
backend/controllers/StatsController.php View File

@@ -63,6 +63,7 @@ class StatsController extends BackendController {
->with('commandeProduits')
->joinWith('production')
->where('production.date > '.$date_start)
->andWhere('production.id_etablissement = '.Yii::$app->user->identity->id_etablissement)
->all() ;
foreach($commandes as $c) {

Loading…
Cancel
Save