Browse Source

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

master
keun 7 years ago
parent
commit
2d527e8faf
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      backend/controllers/CommandeController.php

+ 5
- 5
backend/controllers/CommandeController.php View File

@@ -283,11 +283,11 @@ class CommandeController extends BackendController {
// production_point_vente à définir s'ils ne sont pas initialisés
if($production && $production->actif) {
$count_productions_point_vente = self::find()->
where([
'id_production' => $production->id
])
->count() ;
$count_productions_point_vente = ProductionPointVente::find()->
where([
'id_production' => $production->id
])
->count() ;
ProductionPointVente::setAll($production->id, true) ;
}

Loading…
Cancel
Save