Parcourir la source

Activer/désactiver les points de vente : adaptations (suite)

master
keun il y a 7 ans
Parent
révision
184406ffc3
1 fichiers modifiés avec 14 ajouts et 14 suppressions
  1. +14
    -14
      backend/controllers/CommandeController.php

+ 14
- 14
backend/controllers/CommandeController.php Voir le fichier

@@ -263,6 +263,20 @@ class CommandeController extends BackendController {
}
}
// production_point_vente à définir s'ils ne sont pas initialisés
if($production && $production->actif) {
$count_productions_point_vente = ProductionPointVente::find()->
where([
'id_production' => $production->id
])
->count() ;
if(!$count_productions_point_vente)
{
ProductionPointVente::setAll($production->id, true) ;
}
}
// points de vente
if($production)
{
@@ -281,20 +295,6 @@ class CommandeController extends BackendController {
->all();
}
// production_point_vente à définir s'ils ne sont pas initialisés
if($production && $production->actif) {
$count_productions_point_vente = ProductionPointVente::find()->
where([
'id_production' => $production->id
])
->count() ;
if(!$count_productions_point_vente)
{
ProductionPointVente::setAll($production->id, true) ;
}
}

// produits
$produits = Produit::getAll() ;

Chargement…
Annuler
Enregistrer