Suppression debuggage

This commit is contained in:
Michael RICOIS 2015-01-22 10:53:21 +00:00
parent 6933de2d40
commit da429b2d1d
3 changed files with 10 additions and 12 deletions

View File

@ -252,12 +252,13 @@ class EvaluationController extends Zend_Controller_Action
$siren = substr($this->siret,0,9); $siren = substr($this->siret,0,9);
//@todo : transformer le webservice pour ne faire qu'une seule requete
$ws = new WsScores(); $ws = new WsScores();
$entreprise = new Scores_Session_Entreprise($this->siret, $this->id); $entreprise = new Scores_Session_Entreprise($this->siret, $this->id);
$identite = $ws->getIdentite($siren); $identite = $ws->getIdentite($siren);
$indiscore = $ws->getIndiScore($siren); $indiscore = $ws->getIndiScore($siren);
$infos = $ws->getRatios($siren, 'indiscore2'); // @todo : vérifier la page $infos = $ws->getRatios($siren, 'indiscore2');
$score = array(); $score = array();
$tabRatio = array( $tabRatio = array(
'r5' => array('total'=>'r5', 'total_info'=>'% ca', 'op' => 1000, 'titre'=>'CHIFFRE D\'AFFAIRES'), '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) if ($nbBilanN!=0)
{ {
foreach($tabRatio as $idRatio => $valRatio){ foreach($tabRatio as $idRatio => $valRatio)
{
$tabRatio[$idRatio]['comment'] = $ratiosData->wrapComment($idRatio); $tabRatio[$idRatio]['comment'] = $ratiosData->wrapComment($idRatio);
} }
$this->view->assign('tabRatio', $tabRatio); $this->view->assign('tabRatio', $tabRatio);
@ -294,15 +296,18 @@ class EvaluationController extends Zend_Controller_Action
$annees = array_slice($annees, 0, $nbMaxBilan); $annees = array_slice($annees, 0, $nbMaxBilan);
sort($annees); sort($annees);
$tabResult = array(); $tabResult = array();
foreach($annees as $annee){ foreach($annees as $annee)
{
$data = array(); $data = array();
$dataEvol = array(); $dataEvol = array();
//Formatter les données //Formatter les données
foreach($tabRatio as $idRatio => $valRatio){ foreach($tabRatio as $idRatio => $valRatio)
{
$data[$idRatio] = $ratiosData->dRatio($typeBilan, $annee, $idRatio); $data[$idRatio] = $ratiosData->dRatio($typeBilan, $annee, $idRatio);
$dataTotal[$idRatio] = $ratiosData->dTotal($typeBilan, $annee, $idRatio, $valRatio['total']); $dataTotal[$idRatio] = $ratiosData->dTotal($typeBilan, $annee, $idRatio, $valRatio['total']);
$dInfo[$idRatio] = $valRatio['total_info']; $dInfo[$idRatio] = $valRatio['total_info'];
} }
$date = new Zend_Date($annee, 'yyyyMMdd'); $date = new Zend_Date($annee, 'yyyyMMdd');
$tabResult[] = array( $tabResult[] = array(
'dateCloture' => $date->toString('dd/MM/yyyy'), 'dateCloture' => $date->toString('dd/MM/yyyy'),

View File

@ -429,8 +429,6 @@ class FinanceController extends Zend_Controller_Action
$typeBilan = $request->getParam('typeBilan'); $typeBilan = $request->getParam('typeBilan');
$dateCloture = $request->getParam('dateCloture'); $dateCloture = $request->getParam('dateCloture');
Zend_Registry::get('firebug')->info($request->getParams());
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->pages . '/imgcache/'; $path = $c->profil->path->pages . '/imgcache/';
switch($type){ switch($type){
@ -708,7 +706,6 @@ class FinanceController extends Zend_Controller_Action
$this->view->assign('email', $user->getEmail()); $this->view->assign('email', $user->getEmail());
$this->view->assign('siren', $params['siren']); $this->view->assign('siren', $params['siren']);
Zend_Registry::get('firebug')->info($params);
$ref = $params['ref']; $ref = $params['ref'];
@ -1420,7 +1417,6 @@ class FinanceController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$response = $ws->getEntrepriseLiasseInfos($siren); $response = $ws->getEntrepriseLiasseInfos($siren);
Zend_Registry::get('firebug')->info($response);
if ( $response === null ) { if ( $response === null ) {
$this->view->assign('msg','Aucun bilan déposé.'); $this->view->assign('msg','Aucun bilan déposé.');
} else { } else {

View File

@ -638,8 +638,6 @@ class IdentiteController extends Zend_Controller_Action
$this->view->assign('surveillance', $user->checkPerm('survdirigeants')); $this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
} }
Zend_Registry::get('firebug')->info($identite);
if ($identite->PpPm=='PP') { if ($identite->PpPm=='PP') {
$this->view->assign('PP', true); $this->view->assign('PP', true);
$this->view->assign('nom', $identite->nom); $this->view->assign('nom', $identite->nom);
@ -675,7 +673,6 @@ class IdentiteController extends Zend_Controller_Action
} }
$infos = $ws->getLiens($siren); $infos = $ws->getLiens($siren);
Zend_Registry::get('firebug')->info($infos);
if (is_string($infos) || $infos === false) $this->_forward('soap', 'error'); if (is_string($infos) || $infos === false) $this->_forward('soap', 'error');
} }