fix bad request sql

This commit is contained in:
benoitpotier 2017-03-23 15:57:19 +01:00
parent 19c421633a
commit ff3e54cb93
2 changed files with 2 additions and 2 deletions

View File

@ -364,7 +364,7 @@ class Metier_Partenaires_MBilans
// --- 1 : consultation d'un membre de scores et décisions
// --- 147 : consultation d'un opérateur de l'arménie
if ($idClient > 1 && $idClient != 147) {
$where.= " AND (confidentiel_client == '".$idClient."' OR confidentiel = 0)";
$where.= " AND (confidentiel_client = ".$idClient." OR confidentiel = 0)";
}
$where.= " ORDER BY dateExercice DESC, CASE typeBilan WHEN 'N' THEN 1 WHEN 'S' THEN 2 ELSE 3 END";

View File

@ -4632,7 +4632,7 @@ class Entreprise extends Scores_Ws_Server
// Ratios
$mBil = new Metier_Partenaires_MBilans();
$mBil->setSiren($siren);
$tabBilans = $mBil->listeBilans($accesPartenaire, 5);
$tabBilans = $mBil->listeBilans($accesPartenaire, 5, $this->User->idClient);
$nbBilans = count($tabBilans);
$tabBilan = $tabBil = array();
if ($nbBilans > 0) {