|
|
@@ -65,7 +65,8 @@ class CommandeController extends BackendController { |
|
|
|
$id_etablissement = Yii::$app->user->identity->id_etablissement ; |
|
|
|
|
|
|
|
$commandes = Commande::findBy([ |
|
|
|
'date' => $date |
|
|
|
'date' => $date, |
|
|
|
'id_etablissement' => $id_etablissement |
|
|
|
]) ; |
|
|
|
|
|
|
|
foreach ($commandes as $c) |
|
|
@@ -78,7 +79,9 @@ class CommandeController extends BackendController { |
|
|
|
if($production) |
|
|
|
{ |
|
|
|
$produits_selec = ProductionProduit::findProduits($production->id); |
|
|
|
$points_vente = PointVente::find()->all(); |
|
|
|
$points_vente = PointVente::find() |
|
|
|
->where(['id_etablissement' => $id_etablissement]) |
|
|
|
->all(); |
|
|
|
foreach ($points_vente as $pv) |
|
|
|
$pv->initCommandes($commandes); |
|
|
|
|