Procházet zdrojové kódy

Correction : le report comporte dans certains cas les points de vente d'une autre boulangerie.

Ajout de l'id_etablissement dans la récupération des points de vente.
prodstable
keun před 8 roky
rodič
revize
b7ee63adb4
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. +5
    -2
      backend/controllers/CommandeController.php

+ 5
- 2
backend/controllers/CommandeController.php Zobrazit soubor

$id_etablissement = Yii::$app->user->identity->id_etablissement ; $id_etablissement = Yii::$app->user->identity->id_etablissement ;
$commandes = Commande::findBy([ $commandes = Commande::findBy([
'date' => $date
'date' => $date,
'id_etablissement' => $id_etablissement
]) ; ]) ;


foreach ($commandes as $c) foreach ($commandes as $c)
if($production) if($production)
{ {
$produits_selec = ProductionProduit::findProduits($production->id); $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) foreach ($points_vente as $pv)
$pv->initCommandes($commandes); $pv->initCommandes($commandes);



Načítá se…
Zrušit
Uložit