[freeside-commits] freeside/httemplate/search cust_main.cgi, 1.81, 1.82 report_cust_main.html, 1.14, 1.15 cust_main.html, 1.22, 1.23
Ivan,,,
ivan at wavetail.420.am
Wed Oct 20 18:34:54 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv19193/httemplate/search
Modified Files:
cust_main.cgi report_cust_main.html cust_main.html
Log Message:
better address searching: disable fuzzy/substring searches when an exact match is found, work around L:EN:NameParse DrainBramage w/two-letter first names like "Ed", add an address1 search to advanced customer search, RT#10254
Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_main.cgi,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -w -d -r1.81 -r1.82
--- cust_main.cgi 17 Sep 2010 23:32:33 -0000 1.81
+++ cust_main.cgi 21 Oct 2010 01:34:52 -0000 1.82
@@ -204,7 +204,9 @@
% if ( $cgi->param('search_cust') ) {
% $sortby = \*company_sort;
% $orderby = "ORDER BY LOWER(company || ' ' || last || ' ' || first )";
-% push @cust_main, smart_search( 'search' => $cgi->param('search_cust') );
+% push @cust_main, smart_search( 'search' => $cgi->param('search_cust'),
+% 'disable_fuzzy_on_exact' => 1, #pref?
+% );
% }
%
% @cust_main = grep { $_->ncancelled_pkgs || ! $_->all_pkgs } @cust_main
Index: report_cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_cust_main.html,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -w -d -r1.14 -r1.15
--- report_cust_main.html 20 May 2010 08:48:51 -0000 1.14
+++ report_cust_main.html 21 Oct 2010 01:34:52 -0000 1.15
@@ -28,6 +28,11 @@
)
%>
+ <TR>
+ <TD ALIGN="right" VALIGN="center">Address</TD>
+ <TD><INPUT TYPE="text" NAME="address" SIZE=54></TD>
+ </TR>
+
% foreach my $field (qw( signupdate )) {
<TR>
Index: cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_main.html,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -w -d -r1.22 -r1.23
--- cust_main.html 17 Sep 2010 23:32:33 -0000 1.22
+++ cust_main.html 21 Oct 2010 01:34:52 -0000 1.23
@@ -44,8 +44,10 @@
#scalars
my @scalars = qw (
- agentnum status cancelled_pkgs cust_fields flattened_pkgs custbatch usernum
- no_censustract paydate_year paydate_month invoice_terms
+ agentnum status address paydate_year paydate_month invoice_terms
+ no_censustract custbatch usernum
+ cancelled_pkgs
+ cust_fields flattened_pkgs
);
for my $param ( @scalars ) {
More information about the freeside-commits
mailing list