From ff5dbdbaa468fd5f1e46e6a3538717c61d6f35dc Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 1 Jul 2015 08:51:26 +0200 Subject: [PATCH] Improve calendar list, add the difference in days + tiers name --- include/class_calendar.php | 3 ++- include/template/calendar-list.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/class_calendar.php b/include/class_calendar.php index e2c43bb8b..5903ed25a 100644 --- a/include/class_calendar.php +++ b/include/class_calendar.php @@ -303,7 +303,8 @@ class Calendar case when ag_remind_date < now() then 'R' when ag_remind_date = now() then 'N' else 'F' - end as status + end as status, + coalesce (ag_remind_date::date,current_date) - current_date as delta_days from action_gestion left join vw_fiche_name on (f_id=f_id_dest) where diff --git a/include/template/calendar-list.php b/include/template/calendar-list.php index e700f0c0a..252b0b316 100644 --- a/include/template/calendar-list.php +++ b/include/template/calendar-list.php @@ -46,6 +46,7 @@ @@ -54,7 +55,7 @@ - +