From a80ed8d876947c30554ff728931e70e5a4605a9f Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 8 Jul 2015 11:55:02 +0300 Subject: [PATCH] added filter for "completed" appoinments in display list --- admin/displayappointments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/displayappointments.php b/admin/displayappointments.php index d02d11c8..3dee10bf 100644 --- a/admin/displayappointments.php +++ b/admin/displayappointments.php @@ -242,7 +242,7 @@ else { JOIN (`case` as c, respondent as r, questionnaire as q, operator as oo, call_attempt as cc) on (a.case_id = c.case_id and a.respondent_id = r.respondent_id and q.questionnaire_id = c.questionnaire_id and a.call_attempt_id = cc.call_attempt_id and cc.operator_id = oo.operator_id) LEFT JOIN (`call` as ca, outcome as ou, operator as ooo) ON (ca.call_id = a.completed_call_id and ou.outcome_id = ca.outcome_id and ca.operator_id = ooo.operator_id) LEFT JOIN operator AS ao ON ao.operator_id = a.require_operator_id - WHERE a.end >= CONVERT_TZ(NOW(),'System','UTC') + WHERE a.end >= CONVERT_TZ(NOW(),'System','UTC') AND c.current_outcome_id !=10 ORDER BY a.start ASC"; $rs = $db->GetAll($sql);