diff --git a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql index c22349e8..01f260b5 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql @@ -1003,7 +1003,9 @@ CREATE TABLE vicidial_status_categories ( vsc_id VARCHAR(20) PRIMARY KEY NOT NULL, vsc_name VARCHAR(50), vsc_description VARCHAR(255), -tovdad_display ENUM('Y','N') default 'N' +tovdad_display ENUM('Y','N') default 'N', +sale_category ENUM('Y','N') default 'N', +dead_lead_category ENUM('Y','N') default 'N' ); CREATE TABLE vicidial_ivr ( diff --git a/agc_2-X/trunk/extras/upgrade_2.0.5.sql b/agc_2-X/trunk/extras/upgrade_2.0.5.sql index c8a96cbc..6bcd4302 100644 --- a/agc_2-X/trunk/extras/upgrade_2.0.5.sql +++ b/agc_2-X/trunk/extras/upgrade_2.0.5.sql @@ -335,3 +335,8 @@ ALTER TABLE vicidial_inbound_groups ADD qc_script VARCHAR(10); UPDATE system_settings SET qc_last_pull_time="2008-01-01"; UPDATE system_settings SET db_schema_version='1101'; + +ALTER TABLE vicidial_status_categories ADD sale_category ENUM('Y','N') default 'N'; +ALTER TABLE vicidial_status_categories ADD dead_lead_category ENUM('Y','N') default 'N'; + +UPDATE system_settings SET db_schema_version='1102'; diff --git a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.5.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.5.txt index 1aac5612..da362283 100644 --- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.5.txt +++ b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.5.txt @@ -232,6 +232,9 @@ QC Show Recording|| QC Shift|| Inbound Group QC Settings|| QC Shift -<\/B> This is the shift timeframe used to pull QC records for an inbound_group. The days of the week are ignored for these functions|| +The Sale Category and Dead Lead Category are both used by the List Suggestion system when analyzing list statistics.|| +Sale Category: || +Dead Lead Category: || ############################################################ CLIENT diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 8c7c6733..40d03ef0 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -775,6 +775,11 @@ if (isset($_GET["vdc_agent_api_active"])) {$vdc_agent_api_active=$_GET["vdc_a elseif (isset($_POST["vdc_agent_api_active"])) {$vdc_agent_api_active=$_POST["vdc_agent_api_active"];} if (isset($_GET["display_queue_count"])) {$display_queue_count=$_GET["display_queue_count"];} elseif (isset($_POST["display_queue_count"])) {$display_queue_count=$_POST["display_queue_count"];} +if (isset($_GET["sale_category"])) {$sale_category=$_GET["sale_category"];} + elseif (isset($_POST["sale_category"])) {$sale_category=$_POST["sale_category"];} +if (isset($_GET["dead_lead_category"])) {$dead_lead_category=$_GET["dead_lead_category"];} + elseif (isset($_POST["dead_lead_category"])) {$dead_lead_category=$_POST["dead_lead_category"];} + if (isset($script_id)) {$script_id= strtoupper($script_id);} if (isset($lead_filter_id)) {$lead_filter_id = strtoupper($lead_filter_id);} @@ -979,6 +984,8 @@ $campaign_allow_inbound = ereg_replace("[^NY]","",$campaign_allow_inbound); $disable_alter_custphone = ereg_replace("[^NY]","",$disable_alter_custphone); $display_queue_count = ereg_replace("[^NY]","",$display_queue_count); $qc_show_recording = ereg_replace("[^NY]","",$qc_show_recording); +$sale_category = ereg_replace("[^NY]","",$sale_category); +$dead_lead_category = ereg_replace("[^NY]","",$dead_lead_category); $qc_enabled = ereg_replace("[^0-9NY]","",$qc_enabled); @@ -1342,11 +1349,12 @@ $survey_camp_record_dir = ereg_replace(";","",$survey_camp_record_dir); # 80703-0124 - Added alter cust phone and api settings # 80715-1130 - Added Recycle leads limit count # 80719-1351 - Changed QC settings in campaigns and In-Groups +# 80809-2305 - Added Sale and Dead Lead categories to status categories page # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time -$admin_version = '2.0.5-136'; -$build = '80719-1351'; +$admin_version = '2.0.5-137'; +$build = '80809-2305'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -4060,7 +4068,7 @@ FR_SPAC 00 00 00 00 00 - France space separated phone number
VICIDIAL_STATUS_CATEGORIES TABLE


-Through the use of system status categories, you can group together statuses to allow for statistical analysis on a group of statuses. The Category ID must be 2-20 characters in length with no spaces, the name must be 2-50 characters in length, the description is optional and TimeonVDAD Display defines whether that status will be one of the upto 4 statuses that can be calculated and displayed on the Time On VDAD Real-Time report. +Through the use of system status categories, you can group together statuses to allow for statistical analysis on a group of statuses. The Category ID must be 2-20 characters in length with no spaces, the name must be 2-50 characters in length, the description is optional and TimeonVDAD Display defines whether that status will be one of the upto 4 statuses that can be calculated and displayed on the Time On VDAD Real-Time report. The Sale Category and Dead Lead Category are both used by the List Suggestion system when analyzing list statistics.



@@ -6879,7 +6887,7 @@ if ($ADD==231111111111111) echo "
ERROR: There are already 4 Status Categories set to TimeOnVDAD Display\n"; } - $stmt="INSERT INTO vicidial_status_categories (vsc_id,vsc_name,vsc_description,tovdad_display) values('$vsc_id','$vsc_name','$vsc_description','$tovdad_display');"; + $stmt="INSERT INTO vicidial_status_categories (vsc_id,vsc_name,vsc_description,tovdad_display,sale_category,dead_lead_category) values('$vsc_id','$vsc_name','$vsc_description','$tovdad_display','$sale_category','$dead_lead_category');"; $rslt=mysql_query($stmt, $link); ### LOG CHANGES TO LOG FILE ### @@ -8660,7 +8668,7 @@ if ($ADD==431111111111111) echo "
ERROR: There are already 4 Status Categories set to TimeOnVDAD Display\n"; } - $stmt="UPDATE vicidial_status_categories SET vsc_name='$vsc_name',vsc_description='$vsc_description',tovdad_display='$tovdad_display' where vsc_id='$vsc_id';"; + $stmt="UPDATE vicidial_status_categories SET vsc_name='$vsc_name',vsc_description='$vsc_description',tovdad_display='$tovdad_display',sale_category='$sale_category',dead_lead_category='$dead_lead_category' where vsc_id='$vsc_id';"; $rslt=mysql_query($stmt, $link); ### LOG CHANGES TO LOG FILE ### @@ -14479,7 +14487,7 @@ if ($ADD==331111111111111) echo "
\n"; echo "VICIDIAL STATUS CATEGORIES:   $NWB#vicidial_status_categories$NWE
\n"; echo "\n"; - echo "\n"; + echo "\n"; $stmt="SELECT * from vicidial_status_categories order by vsc_id;"; $rslt=mysql_query($stmt, $link); @@ -14488,12 +14496,12 @@ if ($ADD==331111111111111) while ($statuses_to_print > $o) { $rowx=mysql_fetch_row($rslt); - - $Avsc_id[$o] = $rowx[0]; - $Avsc_name[$o] = $rowx[1]; - $Avsc_description[$o] = $rowx[2]; - $Atovdad_display[$o] = $rowx[3]; - + $Avsc_id[$o] = $rowx[0]; + $Avsc_name[$o] = $rowx[1]; + $Avsc_description[$o] = $rowx[2]; + $Atovdad_display[$o] = $rowx[3]; + $Asale_category[$o] = $rowx[4]; + $Adead_lead_category[$o] = $rowx[5]; $o++; } $p=0; @@ -14532,12 +14540,13 @@ if ($ADD==331111111111111) echo "\n"; echo "$Avsc_id[$p]\n"; echo "\n"; - echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; @@ -14549,8 +14558,10 @@ if ($ADD==331111111111111) echo "
ADD NEW STATUS CATEGORY
\n"; echo "\n"; echo "Category ID:   \n"; - echo "Name:   \n"; - echo "TimeOnVDAD Display:  
\n"; + echo "Name:  
\n"; + echo "TimeOnVDAD Display:   \n"; + echo "Sale Category:   \n"; + echo "Dead Lead Category:  
\n"; echo "Description:   \n"; echo "
\n";
CATEGORYNAMETOVDADSTATUSES IN THIS CATEGORY
CATEGORYNAMESTATUSES IN THIS CATEGORY
\n"; echo "$CATstatuses"; echo "
Description:
        \n"; + echo "
TO VDAD Display:     Sale Category:     Dead Lead Category:  
Description:
        \n"; echo "   DELETE