Skip to content
Snippets Groups Projects
Commit ff670884 authored by Maxime Kohlhaas's avatar Maxime Kohlhaas
Browse files

Fix : facturestats was not filtering on invoice type

parent 8244d1bd
No related branches found
No related tags found
No related merge requests found
......@@ -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)";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment