in the web-based lead loading scripts, set the phone_code to 1 if it is not populated
fixed duplicate and postal-match tally bugs git-svn-id: svn://192.168.202.10@503 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -15,12 +15,13 @@
|
||||
# 60906-1059 - added filter of non-digits in alt_phone field
|
||||
# 61110-1222 - added new USA-Canada DST scheme and Brazil DST scheme
|
||||
# 61128-1046 - added postal code GMT lookup and duplicate check options
|
||||
# 70205-1703 - Defaulted phone_code to 1 if not populated
|
||||
#
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
#
|
||||
|
||||
$version = '2.0.2';
|
||||
$build = '61128-1046';
|
||||
$version = '2.0.3';
|
||||
$build = '70205-1703';
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -872,6 +873,7 @@ if ($leadfile and filesize($LF_path)<=8388608) {
|
||||
}
|
||||
|
||||
|
||||
if (strlen($phone_code)<1) {$phone_code = '1';}
|
||||
if ($multi_insert_counter > 8) {
|
||||
### insert good deal into pending_transactions table ###
|
||||
$stmtZ = "INSERT INTO vicidial_list values$multistmt('','$entry_date','$modify_date','$status','$user','$vendor_lead_code','$source_id','$list_id','$gmt_offset','$called_since_last_reset','$phone_code','$phone_number','$title','$first_name','$middle_initial','$last_name','$address1','$address2','$address3','$city','$state','$province','$postal_code','$country','$gender','$date_of_birth','$alt_phone','$email','$security_phrase','$comments',0);";
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
# 60906-1058 - added filter of non-digits in alt_phone field
|
||||
# 61110-1229 - added new USA-Canada DST scheme and Brazil DST scheme
|
||||
# 61128-1215 - added postal code GMT lookup and duplicate check options
|
||||
# 70205-1703 - Defaulted phone_code to 1 if not populated
|
||||
#
|
||||
|
||||
### begin parsing run-time options ###
|
||||
@@ -434,6 +435,7 @@ foreach $oWkS (@{$oBook->{Worksheet}}) {
|
||||
$AC_processed++;
|
||||
}
|
||||
|
||||
if (length($phone_code)<1) {$phone_code = '1';}
|
||||
if ($multi_insert_counter > 8) {
|
||||
### insert good deal into pending_transactions table ###
|
||||
$stmtZ = "INSERT INTO vicidial_list values$multistmt('','$entry_date','$modify_date','$status','$user','$vendor_lead_code','$source_id','$list_id','$gmt_offset','$called_since_last_reset','$phone_code','$phone_number','$title','$first_name','$middle_initial','$last_name','$address1','$address2','$address3','$city','$state','$province','$postal_code','$country','$gender','$date_of_birth','$alt_phone','$email','$security_phrase','$comments',0);";
|
||||
@@ -454,7 +456,7 @@ foreach $oWkS (@{$oBook->{Worksheet}}) {
|
||||
}
|
||||
$total++;
|
||||
if ($total%100==0) {
|
||||
print "<script language='JavaScript1.2'>ShowProgress($good, $bad, $total)</script>";
|
||||
print "<script language='JavaScript1.2'>ShowProgress($good, $bad, $total, $dup_lead, $postalgmt_found)</script>";
|
||||
sleep(1);
|
||||
# flush();
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
# 60906-1056 - added filter of non-digits in alt_phone field
|
||||
# 61110-1229 - added new USA-Canada DST scheme and Brazil DST scheme
|
||||
# 61128-1207 - added postal code GMT lookup and duplicate check options
|
||||
# 70205-1703 - Defaulted phone_code to 1 if not populated
|
||||
#
|
||||
|
||||
### begin parsing run-time options ###
|
||||
@@ -436,6 +437,7 @@ foreach $oWkS (@{$oBook->{Worksheet}}) {
|
||||
$AC_processed++;
|
||||
}
|
||||
|
||||
if (length($phone_code)<1) {$phone_code = '1';}
|
||||
if ($multi_insert_counter > 8) {
|
||||
### insert good deal into pending_transactions table ###
|
||||
$stmtZ = "INSERT INTO vicidial_list values$multistmt('','$entry_date','$modify_date','$status','$user','$vendor_lead_code','$source_id','$list_id','$gmt_offset','$called_since_last_reset','$phone_code','$phone_number','$title','$first_name','$middle_initial','$last_name','$address1','$address2','$address3','$city','$state','$province','$postal_code','$country_code','$gender','$date_of_birth','$alt_phone','$email','$security_phrase','$comments',0);";
|
||||
@@ -456,7 +458,7 @@ foreach $oWkS (@{$oBook->{Worksheet}}) {
|
||||
}
|
||||
$total++;
|
||||
if ($total%100==0) {
|
||||
print "<script language='JavaScript1.2'>ShowProgress($good, $bad, $total)</script>";
|
||||
print "<script language='JavaScript1.2'>ShowProgress($good, $bad, $total, $dup_lead, $postalgmt_found)</script>";
|
||||
sleep(1);
|
||||
# flush();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user