fix bad request sql
This commit is contained in:
parent
19c421633a
commit
ff3e54cb93
@ -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";
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user