diff options
author | ivan <ivan> | 2006-04-12 12:36:39 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-04-12 12:36:39 +0000 |
commit | d453a487d95258e1f11f134fc5864f7e6458a6ef (patch) | |
tree | 57b0c5dc7523d5e88312000211ef4c6d8ab24a0a /httemplate/search/cust_main.cgi | |
parent | 7bdf17a005cf4c0fe8b6b6ad1ce97abaa52a4510 (diff) |
zip code report
Diffstat (limited to 'httemplate/search/cust_main.cgi')
-rwxr-xr-x | httemplate/search/cust_main.cgi | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index 665f5637d..36ad39da8 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -102,18 +102,8 @@ if ( $cgi->param('browse') && ! $cgi->param('showcancelledcustomers') ) ) { #grep { $_->ncancelled_pkgs || ! $_->all_pkgs } - push @qual, " - ( 0 < ( SELECT COUNT(*) FROM cust_pkg - WHERE cust_pkg.custnum = cust_main.custnum - AND ( cust_pkg.cancel IS NULL - OR cust_pkg.cancel = 0 - ) - ) - OR 0 = ( SELECT COUNT(*) FROM cust_pkg - WHERE cust_pkg.custnum = cust_main.custnum - ) - ) - "; + push @qual, FS::cust_main->uncancel_sql; + } push @qual, FS::cust_main->cancel_sql if $cgi->param('cancelled'); |