@@ -362,7 +362,7 @@ class Commande extends \yii\db\ActiveRecord | |||
if(isset($params['date'])) | |||
$commandes = $commandes->where(['production.date' => $date]); | |||
$commandes = $commandes->where(['production.date' => $params['date']]); | |||
if(isset($params['order'])) | |||
$commandes = $commandes->orderBy('date '.$params['order']); |