From 84712a1a52e3c611384f55f8c771052c6262f44b Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 22 May 2015 17:05:47 +0000 Subject: [PATCH] Fixed issue with missing calls from user stats section in AST_CLOSERstats.php git-svn-id: svn://192.168.202.10@2326 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/AST_CLOSERstats.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/vicidial/AST_CLOSERstats.php b/www/vicidial/AST_CLOSERstats.php index 4e5f2794..a9316fca 100644 --- a/www/vicidial/AST_CLOSERstats.php +++ b/www/vicidial/AST_CLOSERstats.php @@ -47,6 +47,7 @@ # 141128-0858 - Code cleanup for QXZ functions # 141230-0942 - Added code for on-the-fly language translations display # 150516-1259 - Fixed Javascript element problem, Issue #857 +# 150522-1304 - Fixed issue with missing calls from user stats section # $startMS = microtime(); @@ -2096,10 +2097,10 @@ $CALLS_graph=$graph_header."$rpt_type_verbiages $TIMEHMS_graph=$graph_header.""._QXZ("TIME H:M:S").""; $AVERAGE_graph=$graph_header.""._QXZ("AVERAGE").""; -$stmt="select vicidial_closer_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_closer_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id IN($group_SQL) and vicidial_closer_log.user is not null and length_in_sec is not null and length_in_sec > 0 and vicidial_closer_log.user=vicidial_users.user group by vicidial_closer_log.user;"; +$stmt="select vicidial_closer_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_closer_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id IN($group_SQL) and vicidial_closer_log.user is not null and length_in_sec is not null and vicidial_closer_log.user=vicidial_users.user group by vicidial_closer_log.user;"; if ($DID=='Y') { - $stmt="select vicidial_closer_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_closer_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and uniqueid IN($unid_SQL) and vicidial_closer_log.user is not null and length_in_sec is not null and length_in_sec > 0 and vicidial_closer_log.user=vicidial_users.user group by vicidial_closer_log.user;"; + $stmt="select vicidial_closer_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_closer_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and uniqueid IN($unid_SQL) and vicidial_closer_log.user is not null and length_in_sec is not null and vicidial_closer_log.user=vicidial_users.user group by vicidial_closer_log.user;"; } $rslt=mysql_to_mysqli($stmt, $link); if ($DB) {$ASCII_text.="$stmt\n";}