Skip to content
Snippets Groups Projects
Commit 45d57b04 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #1995 from atm-maxime/3.4

Fix : actioncomme report was not filtering by entity...
parents 0b2a81f4 ccddf0d1
Branches
Tags
No related merge requests found
...@@ -182,6 +182,7 @@ class CommActionRapport ...@@ -182,6 +182,7 @@ class CommActionRapport
$sql.= " WHERE c.id=a.fk_action AND a.fk_user_author = u.rowid"; $sql.= " WHERE c.id=a.fk_action AND a.fk_user_author = u.rowid";
$sql.= " AND a.datep BETWEEN '".$this->db->idate(dol_get_first_day($this->year,$this->month,false))."'"; $sql.= " AND a.datep BETWEEN '".$this->db->idate(dol_get_first_day($this->year,$this->month,false))."'";
$sql.= " AND '".$this->db->idate(dol_get_last_day($this->year,$this->month,false))."'"; $sql.= " AND '".$this->db->idate(dol_get_last_day($this->year,$this->month,false))."'";
$sql.= " AND a.entity = ".$conf->entity;
$sql.= " ORDER BY a.datep DESC"; $sql.= " ORDER BY a.datep DESC";
dol_syslog(get_class($this)."::_page sql=".$sql); dol_syslog(get_class($this)."::_page sql=".$sql);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment