Corrupted data must be fixed by repair not by code hack.
This commit is contained in:
parent
9c47f3d3fd
commit
4abd417a6a
@ -60,7 +60,7 @@ class ExpenseReportStats extends Stats
|
||||
$this->field='total_ht';
|
||||
|
||||
$this->where = " e.fk_statut > 0";
|
||||
$this->where.= " AND e.date_valid > '2000-01-01'"; // To filter only correct "valid date". If date is invalid, the group by on it will fails. Launch a repair.php if you have.
|
||||
//$this->where.= " AND e.date_valid > '2000-01-01'"; // To filter only correct "valid date". If date is invalid, the group by on it will fails. Launch a repair.php if you have.
|
||||
$this->where.= ' AND e.entity IN ('.getEntity('expensereport', 1).')';
|
||||
|
||||
//$this->where.= " AND entity = ".$conf->entity;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user