Correction

This commit is contained in:
Michael RICOIS 2012-06-29 12:26:04 +00:00
commit cdb35ba4c9

View File

@ -154,17 +154,19 @@ class EnrichissementController extends Zend_Controller_Action
$profilId = 0;
foreach($profils as $item) {
if ($selectprofil == $item['']) {
if ($selectprofil == $item['id']) {
$profilId = $item['id'];
}
if ($item['reference']=='default') {
$defaultProfilId = $item['id'];
}
}
if ($profilId = 0) {
if ($profilId == 0) {
$profilId = $defaultProfilId;
}
Zend_Registry::get('firebug')->info($profilId);
if ( count($profils)>0 ) {
$this->view->assign('profil', $profilId);
@ -231,7 +233,7 @@ class EnrichissementController extends Zend_Controller_Action
$conso = round($total * $priceLine + $insee * $redevanceInsee, 2);
}
$this->view->forfaitRemain = $user->forfait - $conso;
$this->view->forfaitRemain = $user->forfait - $conso - $prix;
}
$this->view->prix = $prix;