|
@@ -184,6 +184,7 @@ class CommActionRapport
|
|
|
$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 '".$this->db->idate(dol_get_last_day($this->year,$this->month,false))."'";
|
|
|
+ $sql.= " AND a.entity = ".$conf->entity;
|
|
|
$sql.= " ORDER BY a.datep DESC";
|
|
|
|
|
|
dol_syslog(get_class($this)."::_page sql=".$sql);
|