X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_main.cgi;h=733e5dc151663167b5ed58c17d8953d95632b392;hb=6d777ed1fafabab8c308c9ffa24f1dd48f33a9a5;hp=8b70ff490f52d85dff60dc769b9661aaaeed984b;hpb=2c757d7db4cb6a7b9655de13206fcc84fb7ce61f;p=freeside.git
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index 8b70ff490..733e5dc15 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -186,6 +186,13 @@ if ( $cgi->param('browse')
push @cust_main, @{&companysearch};
}
+ if ( $cgi->param('search_cust') ) {
+ $sortby = \*company_sort;
+ $orderby = "ORDER BY LOWER(company || ' ' || last || ' ' || first )";
+ warn "smart searching for: ". $cgi->param('search_cust');
+ push @cust_main, smart_search( 'search' => $cgi->param('search_cust') );
+ }
+
@cust_main = grep { $_->ncancelled_pkgs || ! $_->all_pkgs } @cust_main
if ! $cgi->param('cancelled')
&& (
@@ -313,7 +320,7 @@ END
$conf->config('ticket_system-custom_priority_field-values');
}
- print "
". $pager. &table(). <
". $pager. include('/elements/table-grid.html'). <
|
(bill) name |