diff options
author | ivan <ivan> | 2007-12-15 01:37:03 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-12-15 01:37:03 +0000 |
commit | 6eaf417a35cf3488bd2f246c9ecbd03fdcabad7a (patch) | |
tree | f34cff387dc207668d3f9dc9e0d2ac46be02132f | |
parent | 99456df1919740f3d6a89e7071f23211962819df (diff) |
where helps alot
-rwxr-xr-x | httemplate/search/cust_bill.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index e2346d7ee..e4c0aff72 100755 --- a/httemplate/search/cust_bill.html +++ b/httemplate/search/cust_bill.html @@ -124,8 +124,6 @@ if ( $cgi->param('invnum') =~ /^\s*(FS-)?(\d+)\s*$/ ) { $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 @@ if ( $cgi->param('invnum') =~ /^\s*(FS-)?(\d+)\s*$/ ) { '$%.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', |