@@ -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) { |