Pārlūkot izejas kodu

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

master
keun pirms 7 gadiem
vecāks
revīzija
184406ffc3
1 mainītis faili ar 14 papildinājumiem un 14 dzēšanām
  1. +14
    -14
      backend/controllers/CommandeController.php

+ 14
- 14
backend/controllers/CommandeController.php Parādīt failu

@@ -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() ;

Notiek ielāde…
Atcelt
Saglabāt