Merge pull request #2876 from atm-maxime/3.6

Fix : facturestats was not filtering on invoice type
This commit is contained in:
Laurent Destailleur 2015-05-22 16:52:34 +02:00
commit 9c9afc0a93

View File

@ -84,6 +84,8 @@ class FactureStats extends Stats
$this->where.=" AND f.fk_soc = ".$this->socid;
}
if ($this->userid > 0) $this->where.=' AND f.fk_user_author = '.$this->userid;
if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS)) $this->where.= " AND f.type IN (0,1,2)";
else $this->where.= " AND f.type IN (0,1,2,3)";
}