diff --git a/application/controllers/EvaluationController.php b/application/controllers/EvaluationController.php index be78fb5e6..9c1234447 100644 --- a/application/controllers/EvaluationController.php +++ b/application/controllers/EvaluationController.php @@ -252,12 +252,13 @@ class EvaluationController extends Zend_Controller_Action $siren = substr($this->siret,0,9); + //@todo : transformer le webservice pour ne faire qu'une seule requete $ws = new WsScores(); $entreprise = new Scores_Session_Entreprise($this->siret, $this->id); $identite = $ws->getIdentite($siren); $indiscore = $ws->getIndiScore($siren); - $infos = $ws->getRatios($siren, 'indiscore2'); // @todo : vérifier la page - + $infos = $ws->getRatios($siren, 'indiscore2'); + $score = array(); $tabRatio = array( 'r5' => array('total'=>'r5', 'total_info'=>'% ca', 'op' => 1000, 'titre'=>'CHIFFRE D\'AFFAIRES'), @@ -280,7 +281,8 @@ class EvaluationController extends Zend_Controller_Action if ($nbBilanN!=0) { - foreach($tabRatio as $idRatio => $valRatio){ + foreach($tabRatio as $idRatio => $valRatio) + { $tabRatio[$idRatio]['comment'] = $ratiosData->wrapComment($idRatio); } $this->view->assign('tabRatio', $tabRatio); @@ -294,15 +296,18 @@ class EvaluationController extends Zend_Controller_Action $annees = array_slice($annees, 0, $nbMaxBilan); sort($annees); $tabResult = array(); - foreach($annees as $annee){ + foreach($annees as $annee) + { $data = array(); $dataEvol = array(); //Formatter les données - foreach($tabRatio as $idRatio => $valRatio){ + foreach($tabRatio as $idRatio => $valRatio) + { $data[$idRatio] = $ratiosData->dRatio($typeBilan, $annee, $idRatio); $dataTotal[$idRatio] = $ratiosData->dTotal($typeBilan, $annee, $idRatio, $valRatio['total']); $dInfo[$idRatio] = $valRatio['total_info']; } + $date = new Zend_Date($annee, 'yyyyMMdd'); $tabResult[] = array( 'dateCloture' => $date->toString('dd/MM/yyyy'), diff --git a/application/controllers/FinanceController.php b/application/controllers/FinanceController.php index 1da87eb7a..6d1b90285 100644 --- a/application/controllers/FinanceController.php +++ b/application/controllers/FinanceController.php @@ -429,8 +429,6 @@ class FinanceController extends Zend_Controller_Action $typeBilan = $request->getParam('typeBilan'); $dateCloture = $request->getParam('dateCloture'); - Zend_Registry::get('firebug')->info($request->getParams()); - $c = Zend_Registry::get('config'); $path = $c->profil->path->pages . '/imgcache/'; switch($type){ @@ -708,7 +706,6 @@ class FinanceController extends Zend_Controller_Action $this->view->assign('email', $user->getEmail()); $this->view->assign('siren', $params['siren']); - Zend_Registry::get('firebug')->info($params); $ref = $params['ref']; @@ -1420,7 +1417,6 @@ class FinanceController extends Zend_Controller_Action $ws = new WsScores(); $response = $ws->getEntrepriseLiasseInfos($siren); - Zend_Registry::get('firebug')->info($response); if ( $response === null ) { $this->view->assign('msg','Aucun bilan déposé.'); } else { diff --git a/application/controllers/IdentiteController.php b/application/controllers/IdentiteController.php index 5f0a908ef..acfe3da64 100644 --- a/application/controllers/IdentiteController.php +++ b/application/controllers/IdentiteController.php @@ -638,8 +638,6 @@ class IdentiteController extends Zend_Controller_Action $this->view->assign('surveillance', $user->checkPerm('survdirigeants')); } - Zend_Registry::get('firebug')->info($identite); - if ($identite->PpPm=='PP') { $this->view->assign('PP', true); $this->view->assign('nom', $identite->nom); @@ -675,7 +673,6 @@ class IdentiteController extends Zend_Controller_Action } $infos = $ws->getLiens($siren); - Zend_Registry::get('firebug')->info($infos); if (is_string($infos) || $infos === false) $this->_forward('soap', 'error'); }