Merge pull request #9689 from ATM-Marc/FIX_6.0_facture_stats_situation
FIX: invoice stats: situation invoices were not counted
This commit is contained in:
commit
e165dce908
@ -84,8 +84,8 @@ class FactureStats extends Stats
|
|||||||
$this->where.=" AND f.fk_soc = ".$this->socid;
|
$this->where.=" AND f.fk_soc = ".$this->socid;
|
||||||
}
|
}
|
||||||
if ($this->userid > 0) $this->where.=' AND f.fk_user_author = '.$this->userid;
|
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)";
|
if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS)) $this->where.= " AND f.type IN (0,1,2,5)";
|
||||||
else $this->where.= " AND f.type IN (0,1,2,3)";
|
else $this->where.= " AND f.type IN (0,1,2,3,5)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user