瀏覽代碼

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…
取消
儲存