Pārlūkot izejas kodu

Correction : la recherche des commandes ne prend pas en compte id_etablissement

prodstable
keun pirms 7 gadiem
vecāks
revīzija
120cddb6bf
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      common/models/Commande.php

+ 2
- 2
common/models/Commande.php Parādīt failu

@@ -361,11 +361,11 @@ class Commande extends \yii\db\ActiveRecord
$commandes = Commande::find()
->with('commandeProduits', 'user', 'creditHistorique', 'pointVente')
->joinWith('production')
->andWhere(['production.id_etablissement' => $params['id_etablissement']]) ;
->where(['production.id_etablissement' => $params['id_etablissement']]) ;
if(isset($params['date']))
$commandes = $commandes->where(['production.date' => $params['date']]);
$commandes = $commandes->andWhere(['production.date' => $params['date']]);
if(isset($params['order']))
$commandes = $commandes->orderBy('date '.$params['order']);

Notiek ielāde…
Atcelt
Saglabāt