bug follow_up::get_late

This commit is contained in:
Dany De Bontridder 2012-06-30 16:40:12 +00:00
parent 5fd37b8084
commit 7520787770

View file

@ -1035,7 +1035,7 @@ class Follow_Up
$sql = "select coalesce(vw_name,'Interne') as vw_name,ag_id,ag_title,ag_ref, dt_value,to_char(ag_timestamp,'DD.MM.YYYY') as ag_timestamp_fmt,ag_timestamp " .
" from action_gestion join document_type " .
" on (ag_type=dt_id) left join vw_fiche_attr on (f_id=f_id_dest) where ag_state not in (1,4)
and to_char(ag_remind_date,'DDMMYYYY')<=to_char(now(),'DDMMYYYY') ";
and ag_remind_date > trunc (now()) ";
$array = $this->db->get_array($sql);
return $array;
}