diff --git a/agc_2-X/trunk/docs/NON-AGENT_API.txt b/agc_2-X/trunk/docs/NON-AGENT_API.txt index 93a8ad61..750c3c83 100644 --- a/agc_2-X/trunk/docs/NON-AGENT_API.txt +++ b/agc_2-X/trunk/docs/NON-AGENT_API.txt @@ -41,6 +41,7 @@ Changes: 100718-0245 - Added update_lead function to update existing leads 100723-1333 - Added no_update option to the update_lead function 100728-1952 - Added delete_lead option to the update_lead function +100924-1403 - Added called_count as an update_lead option @@ -365,6 +366,7 @@ security_phrase - 1-100 characters comments - 1-255 characters rank - 1-5 digits owner - 1-20 characters (user ID, Territory or user group) +called_count - digits only, the number of attempts dialing the lead NOTES: - in order to set a field to empty('') set it equal to --BLANK--, i.e. "&province=--BLANK--" - please use no special characters like apostrophes, quotes or amphersands diff --git a/agc_2-X/trunk/www/vicidial/admin_modify_lead.php b/agc_2-X/trunk/www/vicidial/admin_modify_lead.php index b495c00a..be4b3ae7 100644 --- a/agc_2-X/trunk/www/vicidial/admin_modify_lead.php +++ b/agc_2-X/trunk/www/vicidial/admin_modify_lead.php @@ -38,6 +38,7 @@ # 100622-0945 - Added field labels # 100703-1122 - Added custom fields display/edit # 100712-1416 - Added entry_list_id field to vicidial_list to preserve link to custom fields if any +# 100924-1431 - Added Called Count display # require("dbconnect.php"); @@ -587,7 +588,7 @@ else echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; diff --git a/agc_2-X/trunk/www/vicidial/non_agent_api.php b/agc_2-X/trunk/www/vicidial/non_agent_api.php index 1e1ce52c..fa2336f2 100644 --- a/agc_2-X/trunk/www/vicidial/non_agent_api.php +++ b/agc_2-X/trunk/www/vicidial/non_agent_api.php @@ -36,10 +36,11 @@ # 100718-0245 - Added update_lead function to update existing leads # 100723-1333 - Added no_update option to the update_lead function # 100728-1952 - Added delete_lead option to the update_lead function +# 100924-1403 - Added called_count as an update_lead option # -$version = '2.4-22'; -$build = '100728-1952'; +$version = '2.4-23'; +$build = '100924-1403'; require("dbconnect.php"); @@ -156,6 +157,8 @@ if (isset($_GET["no_update"])) {$no_update=$_GET["no_update"];} elseif (isset($_POST["no_update"])) {$no_update=$_POST["no_update"];} if (isset($_GET["delete_lead"])) {$delete_lead=$_GET["delete_lead"];} elseif (isset($_POST["delete_lead"])) {$delete_lead=$_POST["delete_lead"];} +if (isset($_GET["called_count"])) {$called_count=$_GET["called_count"];} + elseif (isset($_POST["called_count"])) {$called_count=$_POST["called_count"];} header ("Content-type: text/html; charset=utf-8"); @@ -247,6 +250,7 @@ if ($non_latin < 1) $lead_id = ereg_replace("[^0-9]","",$lead_id); $no_update = ereg_replace("[^A-Z]","",$no_update); $delete_lead = ereg_replace("[^A-Z]","",$delete_lead); + $called_count=ereg_replace("[^0-9]","",$called_count); } else { @@ -1902,6 +1906,7 @@ if ($function == 'update_lead') if (strlen($comments)>0) {$VL_update_SQL .= "comments='$comments',";} if (strlen($rank)>0) {$VL_update_SQL .= "rank='$rank',";} if (strlen($owner)>0) {$VL_update_SQL .= "owner='$owner',";} + if (strlen($called_count)>0) {$VL_update_SQL .= "called_count='$called_count',";} $VL_update_SQL = preg_replace("/,$/","",$VL_update_SQL); $VL_update_SQL = preg_replace("/'--BLANK--'/","''",$VL_update_SQL); $VL_update_SQL = preg_replace("/\n/","!N",$VL_update_SQL);
$label_vendor_lead_code: $vendor_id     Lead ID: $lead_id
Fronter: $tsr     List ID: $list_id
Fronter: $tsr     List ID: $list_id     Called Count: $called_count
$label_title:   \n"; echo "$label_first_name: