Browse Source

Fix bug point de vente invalide (modification commande dans un point de vente avec code d'accès)

master
keun 7 years ago
parent
commit
03bff50b8a
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      frontend/views/commande/_form.php

+ 5
- 1
frontend/views/commande/_form.php View File

@@ -112,6 +112,7 @@ use common\models\Etablissement;
$html_code = '' ;
$data_code = '0' ;
$code = '' ;
if(strlen($pv->code))
{
if(!isset($model->id_point_vente) || $model->id_point_vente != $pv->id)
@@ -119,6 +120,9 @@ use common\models\Etablissement;
$html_code .= '<span class="glyphicon glyphicon-lock"></span> ' ;
$data_code = '1' ;
}
else {
$code = $pv->code ;
}
}
echo '<li class="bloc point-vente point-vente-' . $pv->id . '" data-code="'.$data_code.'" data-vrac="' . (int) $pv->vrac . '" data-pain="' . (int) $pv->pain . '" data-credit-pain="'.(int) $pv->credit_pain.'"><div class="contenu">' .
@@ -135,7 +139,7 @@ use common\models\Etablissement;
'<div class="jour jour-0">' . (strlen($pv->horaires_dimanche) ? nl2br(Html::encode($pv->horaires_dimanche)) : 'Fermé') . '</div>' .
'</div>'
. $commentaire .
'<input type="hidden" name="code_point_vente_'.$pv->id.'" value="" />'.
'<input type="hidden" name="code_point_vente_'.$pv->id.'" value="'.$code.'" />'.
'</div></li>';
}
?>

Loading…
Cancel
Save