Correction sur getRapport

This commit is contained in:
Michael RICOIS 2012-01-23 14:58:18 +00:00
parent 04083e39d5
commit c67c79c78e
3 changed files with 12 additions and 12 deletions

View File

@ -1131,7 +1131,7 @@ class Entreprise extends WsScore
}
}
if ($perm === false) {
$this->sendError('9002');
$this->sendError('0902');
}
$tabRet = array();
@ -2847,16 +2847,16 @@ class Entreprise extends WsScore
$accesDist=true;
$nivComment=2;
if ($niveau==1){
$result->Indiscore = $this->getIndiScore($siren, 0, $accessDist, $nivComment, $plus, $ref, $encours, $email);
$result->Indiscore = $this->getIndiScore($siren, 0, $nivComment, $plus, $ref, $encours, $email);
} elseif ($niveau==2) {
$result->Identite = $this->getIdentite($siren, $id=0);
$result->Indiscore = $this->getIndiScore($siren, 0, $accessDist, $nivComment, $plus, $ref, $encours, $email);
$result->Indiscore = $this->getIndiScore($siren, 0, $nivComment, $plus, $ref, $encours, $email);
$result->Dirigeants = $this->getDirigeants($siren, false);
$result->Liens = $this->getLiens($siren, true);
$result->Ratios = $this->getRatios($siren, $page="rapport$niveau");
} elseif ($niveau==3) {
$result->Identite = $this->getIdentite($siren, $id=0);
$result->Indiscore = $this->getIndiScore($siren, 0, $accessDist, $nivComment, $plus, $ref, $encours, $email);
$result->Indiscore = $this->getIndiScore($siren, 0, $nivComment, $plus, $ref, $encours, $email);
$result->Dirigeants = $this->getDirigeants($siren, false);
$result->Liens = $this->getLiens($siren, true);
$result->Ratios = $this->getRatios($siren, $page="rapport$niveau");

View File

@ -1131,7 +1131,7 @@ class Entreprise extends WsScore
}
}
if ($perm === false) {
$this->sendError('9002');
$this->sendError('0902');
}
$tabRet = array();
@ -2939,16 +2939,16 @@ class Entreprise extends WsScore
$accesDist=true;
$nivComment=2;
if ($niveau==1){
$result->Indiscore = $this->getIndiScore($siren, 0, $accessDist, $nivComment, $plus, $ref, $encours, $email);
$result->Indiscore = $this->getIndiScore($siren, 0, $nivComment, $plus, $ref, $encours, $email);
} elseif ($niveau==2) {
$result->Identite = $this->getIdentite($siren, $id=0);
$result->Indiscore = $this->getIndiScore($siren, 0, $accessDist, $nivComment, $plus, $ref, $encours, $email);
$result->Indiscore = $this->getIndiScore($siren, 0, $nivComment, $plus, $ref, $encours, $email);
$result->Dirigeants = $this->getDirigeants($siren, false);
$result->Liens = $this->getLiens($siren, true);
$result->Ratios = $this->getRatios($siren, $page="rapport$niveau");
} elseif ($niveau==3) {
$result->Identite = $this->getIdentite($siren, $id=0);
$result->Indiscore = $this->getIndiScore($siren, 0, $accessDist, $nivComment, $plus, $ref, $encours, $email);
$result->Indiscore = $this->getIndiScore($siren, 0, $nivComment, $plus, $ref, $encours, $email);
$result->Dirigeants = $this->getDirigeants($siren, false);
$result->Liens = $this->getLiens($siren, true);
$result->Ratios = $this->getRatios($siren, $page="rapport$niveau");

View File

@ -1130,7 +1130,7 @@ class Entreprise extends WsScore
}
}
if ($perm === false) {
$this->sendError('9002');
$this->sendError('0902');
}
@ -3005,16 +3005,16 @@ class Entreprise extends WsScore
$accesDist=true;
$nivComment=2;
if ($niveau==1){
$result->Indiscore = $this->getIndiScore($siren, 0, $accessDist, $nivComment, $plus, $ref, $encours, $email);
$result->Indiscore = $this->getIndiScore($siren, 0, $nivComment, $plus, $ref, $encours, $email);
} elseif ($niveau==2) {
$result->Identite = $this->getIdentite($siren, $id=0);
$result->Indiscore = $this->getIndiScore($siren, 0, $accessDist, $nivComment, $plus, $ref, $encours, $email);
$result->Indiscore = $this->getIndiScore($siren, 0, $nivComment, $plus, $ref, $encours, $email);
$result->Dirigeants = $this->getDirigeants($siren, false);
$result->Liens = $this->getLiens($siren, true);
$result->Ratios = $this->getRatios($siren, $page="rapport$niveau");
} elseif ($niveau==3) {
$result->Identite = $this->getIdentite($siren, $id=0);
$result->Indiscore = $this->getIndiScore($siren, 0, $accessDist, $nivComment, $plus, $ref, $encours, $email);
$result->Indiscore = $this->getIndiScore($siren, 0, $nivComment, $plus, $ref, $encours, $email);
$result->Dirigeants = $this->getDirigeants($siren, false);
$result->Liens = $this->getLiens($siren, true);
$result->Ratios = $this->getRatios($siren, $page="rapport$niveau");