[freeside-commits] freeside/httemplate/search cust_bill.html, 1.25, 1.26

Ivan,,, ivan at wavetail.420.am
Fri Dec 14 17:37:04 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv31178

Modified Files:
	cust_bill.html 
Log Message:
where helps alot

Index: cust_bill.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_bill.html,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- cust_bill.html	15 Dec 2007 01:23:32 -0000	1.25
+++ cust_bill.html	15 Dec 2007 01:37:02 -0000	1.26
@@ -124,8 +124,6 @@
     $orderby = "ORDER BY cust_bill.$field";
   }
 
-  $search{'newest_percust'} = 1 if $cgi->param('newest_percust');
-
   if ( $cgi->param('newest_percust') ) {
     $search{'newest_percust'} = 1;
     $count_query = "SELECT COUNT(DISTINCT cust_bill.custnum), 'N/A', 'N/A'";
@@ -146,7 +144,7 @@
                     '$%.2f outstanding balance',
                   ];
   }
-  $count_query .=  " FROM cust_bill $join_cust_main $extra_sql";
+  $count_query .=  " FROM cust_bill $join_cust_main WHERE $extra_sql";
 
   $sql_query = {
     'table'     => 'cust_bill',



More information about the freeside-commits mailing list