ne remonte pas les bilans confidentiels au client consultant la page Elements Financiers > Synthèse
This commit is contained in:
parent
b423521cde
commit
45434cdd18
@ -349,7 +349,7 @@ class Metier_Partenaires_MBilans
|
||||
* Nombre de bilans maximums retournés
|
||||
* @return array
|
||||
*/
|
||||
public function listeBilans($accesPartenaire = false, $nbMaxBilans = 0)
|
||||
public function listeBilans($accesPartenaire = false, $nbMaxBilans = 0, $idClient = 0)
|
||||
{
|
||||
$dateDerDepot = 0;
|
||||
$tabRet = $tabRet2 = $tabRet3 = $tabRet = array();
|
||||
@ -358,6 +358,7 @@ class Metier_Partenaires_MBilans
|
||||
if ($this->companyEvenDateStop !== null) {
|
||||
$where.= " AND dateExercice<'".$this->companyEvenDateStop."'";
|
||||
}
|
||||
$where.= ($idClient > 0) ? " AND (confidentiel = '".$idClient."' OR confidentiel = 0)" : " AND confidentiel = 0";
|
||||
$where.= " ORDER BY dateExercice DESC, CASE typeBilan WHEN 'N' THEN 1 WHEN 'S' THEN 2 ELSE 3 END";
|
||||
if ($nbMaxBilans > 0) {
|
||||
$where.= " LIMIT 0, $nbMaxBilans";
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user