diff --git a/UPGRADE b/UPGRADE index 9059a088..294d98c7 100644 --- a/UPGRADE +++ b/UPGRADE @@ -87,6 +87,9 @@ OTHER CHANGES: 11. Added campaign setting for Dead Call to Dispo Only, to allow the Dead Call Max Seconds setting to send the agent to the dispo screen +12. Added web lead loader duplicate check options to check for leads loaded only + within the last 90-days. Also added to Non-Agent API add_lead function. + diff --git a/docs/NON-AGENT_API.txt b/docs/NON-AGENT_API.txt index 95057e02..02835b17 100644 --- a/docs/NON-AGENT_API.txt +++ b/docs/NON-AGENT_API.txt @@ -1,4 +1,4 @@ -NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2017-02-09 +NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2017-02-19 This document describes the functions of an API(Application Programming Interface) for all functions NOT directly relating to the VICIDIAL Agent screen. @@ -118,6 +118,7 @@ Changes: 161020-1042 - Added lookup_state option to add_lead, added 10-digit validation if usacan_areacode_check enabled 170204-0947 - Added phone_number_log function 170209-1149 - Added URL and IP logging +170219-1520 - Added 90-day duplicate check option API Functions use the 'function' variable @@ -627,6 +628,7 @@ duplicate_check - Check for duplicate records in the system, can select more tha DUPNAMEPHONELIST - check for duplicate first_name, last_name and phone_number in same list DUPNAMEPHONECAMP - check for duplicate first_name, last_name and phone_number in all lists for this list's campaign DUPNAMEPHONESYS - check for duplicate first_name, last_name and phone_number in entire system + " 90DAY - Added to one of the above duplicate checks(i.e. "DUPSYS90DAY"), only checks leads loaded in last 90 days usacan_prefix_check - Y or N, default is N. Check for a valid 4th digit for USA and Canada phone numbers (cannot be 0 or 1) usacan_areacode_check - Y or N, default is N. Check for a valid areacode for USA and Canada phone numbers(also checks for 10-digit length) nanpa_ac_prefix_check - Y or N, default is N. Check for a valid NANPA areacode and prefix, if optional NANPA data is on the system @@ -857,7 +859,8 @@ SUCCESS: update_lead LEAD HAS BEEN ADDED - 7275551111|6666|999|193716|-4 SUCCESS: update_lead LEAD HAS BEEN DELETED - 7275551111|6666|999|193716|-4 NOTICE: update_lead CUSTOM FIELDS ENTRY DELETED 1 - 7275551111|6666|999|193716|-4 -NOTICE: update_lead LEADS FOUND IN THE SYSTEM - 6666|4567|897654327|7275551212|101|101 +NOTICE: update_lead LEADS FOUND IN THE SYSTEM: |6666|1010542|12345678901234|9998887112|3333444|0 + (user|lead_id|vendorleadcode|phone |list_id|entry_list_id) ERROR: update_lead INVALID DATA FOR LEAD INSERTION - 6666||| ERROR: update_lead NO MATCHES FOUND IN THE SYSTEM - 6666||| diff --git a/www/vicidial/admin_listloader_fourth_gen.php b/www/vicidial/admin_listloader_fourth_gen.php index 2f112902..5cbbdbdf 100644 --- a/www/vicidial/admin_listloader_fourth_gen.php +++ b/www/vicidial/admin_listloader_fourth_gen.php @@ -1,8 +1,8 @@ LICENSE: AGPLv2 +# Copyright (C) 2017 Matt Florell,Joe Johnson LICENSE: AGPLv2 # # ViciDial web-based lead loader from formatted file # @@ -68,10 +68,11 @@ # 160508-0757 - Added colors features # 161103-2224 - Added web_loader_phone_length option # 161114-2315 - Added file upload error checking +# 170219-1427 - Added last-90-day duplicate check options # -$version = '2.12-66'; -$build = '161114-2315'; +$version = '2.14-67'; +$build = '170219-1427'; require("dbconnect_mysqli.php"); require("functions.php"); @@ -615,14 +616,14 @@ if ( (!$OK_to_process) or ( ($leadfile) and ($file_layout!="standard" && $file_l if ($file_layout!="custom") { ?> - > +
> - - + + - - + - - + - + - - + - - +
: :
: + :
: + :         
: :
: :
: + :