Преглед на файлове

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

master
keun преди 7 години
родител
ревизия
184406ffc3
променени са 1 файла, в които са добавени 14 реда и са изтрити 14 реда
  1. +14
    -14
      backend/controllers/CommandeController.php

+ 14
- 14
backend/controllers/CommandeController.php Целия файл

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

Loading…
Отказ
Запис