From 80a95c44afe24cb2e761da9a144f0a22d49df984 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 9 Jul 2008 03:18:48 +0000 Subject: [PATCH] search legacy tax exemptions by customer status --- httemplate/search/cust_tax_exempt.cgi | 7 +++++++ httemplate/search/cust_tax_exempt.html | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 httemplate/search/cust_tax_exempt.html diff --git a/httemplate/search/cust_tax_exempt.cgi b/httemplate/search/cust_tax_exempt.cgi index 551b75d6f..721272632 100644 --- a/httemplate/search/cust_tax_exempt.cgi +++ b/httemplate/search/cust_tax_exempt.cgi @@ -67,6 +67,13 @@ if ( $cgi->param('custnum') =~ /^(\d+)$/ ) { push @where, "cust_main.custnum = $1"; } +#prospect active inactive suspended cancelled +if ( grep { $cgi->param('status') eq $_ } FS::cust_main->statuses() ) { + my $method = $cgi->param('status'). '_sql'; + #push @where, $class->$method(); + push @where, FS::cust_main->$method(); +} + if ( $cgi->param('out') ) { push @where, " diff --git a/httemplate/search/cust_tax_exempt.html b/httemplate/search/cust_tax_exempt.html new file mode 100644 index 000000000..612ad7e2a --- /dev/null +++ b/httemplate/search/cust_tax_exempt.html @@ -0,0 +1,31 @@ +<% include('/elements/header.html', 'Legacy tax exemption report' ) %> + +
+ + + + + + + + <% include( '/elements/tr-select-cust_main-status.html', + 'label' => 'Customer Status' + ) + %> + +
Search options
+ +
+ + + +
+ +<% include('/elements/footer.html') %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('View customer tax exemptions'); + + + -- 2.11.0