From c82d349f864e6bd9f96fd1156903bc1f7193a203 Mon Sep 17 00:00:00 2001 From: cvs2git Date: Mon, 27 Dec 2010 00:04:45 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'. --- httemplate/misc/xmlhttp-cust_main-search.cgi | 38 ---------------------------- 1 file changed, 38 deletions(-) delete mode 100644 httemplate/misc/xmlhttp-cust_main-search.cgi (limited to 'httemplate/misc/xmlhttp-cust_main-search.cgi') diff --git a/httemplate/misc/xmlhttp-cust_main-search.cgi b/httemplate/misc/xmlhttp-cust_main-search.cgi deleted file mode 100644 index 481bea264..000000000 --- a/httemplate/misc/xmlhttp-cust_main-search.cgi +++ /dev/null @@ -1,38 +0,0 @@ -% if ( $sub eq 'custnum_search' ) { -% -% my $custnum = $cgi->param('arg'); -% my $cust_main = ''; -% if ( $custnum =~ /^(\d+)$/ and $1 <= 2147483647 ) { -% $cust_main = qsearchs({ -% 'table' => 'cust_main', -% 'hashref' => { 'custnum' => $1 }, -% 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql, -% }); -% } -% if ( ! $cust_main ) { -% $cust_main = qsearchs({ -% 'table' => 'cust_main', -% 'hashref' => { 'agent_custid' => $custnum }, -% 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql, -% }); -% } -% -"<% $cust_main ? $cust_main->name : '' %>" -% -% } elsif ( $sub eq 'smart_search' ) { -% -% my $string = $cgi->param('arg'); -% my @cust_main = smart_search( 'search' => $string, -% 'no_fuzzy_on_exact' => 1, #pref? -% ); -% my $return = [ map [ $_->custnum, $_->name ], @cust_main ]; -% -<% objToJson($return) %> -% } -<%init> - -my $conf = new FS::Conf; - -my $sub = $cgi->param('sub'); - - -- cgit v1.2.1