From d37b03db13f8e567e307fee79b38c4c2cdc6fa29 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 5 Feb 2015 22:57:55 +0000 Subject: [PATCH] Fix extended format bug in export leads report Changed Manual hotkey auto-manual-dial to a variable delay depending on dispo processing time in vicidial.php git-svn-id: svn://192.168.202.10@2270 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/agc/vicidial.php | 27 +++++++++++++++++++-------- www/vicidial/lead_report_export.php | 2 +- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index f844aa48..daa2dcea 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -475,10 +475,11 @@ # 150129-0828 - Added confirmation if agent tries to leave the page without logging out, issue #821 # 150202-0829 - Reconfigured hotkeys and auto-manual-dial for less delay # 150203-1331 - Small changes to improve manual dial hotkey use +# 150204-1911 - Changed Manual hotkey auto-manual-dial to a variable delay depending on dispo processing time # -$version = '2.10-446c'; -$build = '150203-1331'; +$version = '2.10-447c'; +$build = '150204-1911'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=85; $one_mysql_log=0; @@ -3818,6 +3819,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var volumecontrol_active = ''; var PauseCode_HTML = ''; var manual_auto_hotkey = 0; + var manual_auto_hotkey_wait = 0; var dialed_number = ''; var dialed_label = ''; var source_id = ''; @@ -7688,7 +7690,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) UpdatESettingS(); if (waiting_on_dispo > 0) { - alert_box("
" + agent_log_id + " - " + waiting_on_dispo + ""); + alert_box("
" + agent_log_id + " - " + waiting_on_dispo + " - " + manual_auto_hotkey_wait + ""); dial_next_failed=1; var alert_displayed=0; @@ -10234,7 +10236,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) alt_dial_active = 0; alt_dial_status_display = 0; reselect_alt_dial = 0; - manual_auto_hotkey = 2; + manual_auto_hotkey = 1; } } } @@ -10245,7 +10247,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { alt_dial_active = 0; alt_dial_status_display = 0; - manual_auto_hotkey = 2; + manual_auto_hotkey = 1; } else { @@ -10273,7 +10275,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { if (hotkeysused == 'YES') { - manual_auto_hotkey = 2; + manual_auto_hotkey = 1; alt_dial_active=0; alt_dial_status_display = 0; @@ -14664,6 +14666,7 @@ function phone_number_format(formatphone) { if ( (HKdispo_display <= 2) && (HKfinish==1) ) { HKfinish=0; + manual_auto_hotkey_wait=0; DispoSelect_submit(); // AutoDialWaiting = 1; // AutoDial_ReSume_PauSe("VDADready"); @@ -14802,8 +14805,16 @@ function phone_number_format(formatphone) { { if (manual_auto_hotkey == "1") { - manual_auto_hotkey = 0; - ManualDialNext('','','','','','0'); + if ( (waiting_on_dispo > 0) && (manual_auto_hotkey_wait < 10) ) + { + manual_auto_hotkey_wait++; + // document.getElementById("debugbottomspan").innerHTML = "trigger next manual dial delay: " + manual_auto_hotkey_wait + "|" + waiting_on_dispo; + } + else + { + manual_auto_hotkey = 0; + ManualDialNext('','','','','','0'); + } } if (manual_auto_hotkey > 1) {manual_auto_hotkey = (manual_auto_hotkey - 1);} } diff --git a/www/vicidial/lead_report_export.php b/www/vicidial/lead_report_export.php index 854d91d4..8788a755 100644 --- a/www/vicidial/lead_report_export.php +++ b/www/vicidial/lead_report_export.php @@ -395,7 +395,7 @@ if ($run_export > 0) $EFheader=''; if ($export_fields == 'EXTENDED') { - $export_fields_SQL = ",entry_date,called_count,last_local_call_time,modify_date,called_since_last_reset"; + $export_fields_SQL = ",entry_date,vi.called_count,last_local_call_time,modify_date,called_since_last_reset"; $EFheader = "\tentry_date\tcalled_count\tlast_local_call_time\tmodify_date\tcalled_since_last_reset"; }