X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_tax_exempt_pkg.cgi;h=267c9383a62a90c13e4472ba30ea58cbe849eedb;hb=baf5cfb99275c060748ec1c212e646759af6e96b;hp=7e1a239b4b302c0098005b385ea99100a92591b4;hpb=737c5d8b82defb7e3e40a14ee33c4f80c64a8f71;p=freeside.git diff --git a/httemplate/search/cust_tax_exempt_pkg.cgi b/httemplate/search/cust_tax_exempt_pkg.cgi index 7e1a239b4..267c9383a 100644 --- a/httemplate/search/cust_tax_exempt_pkg.cgi +++ b/httemplate/search/cust_tax_exempt_pkg.cgi @@ -1,4 +1,4 @@ -<% include( 'elements/search.html', +<& elements/search.html, 'title' => 'Tax exemptions', 'name' => 'tax exemptions', 'query' => $query, @@ -77,8 +77,7 @@ '', FS::UI::Web::cust_styles(), ], - ) -%> +&> <%once> my $join_cust = " @@ -119,6 +118,12 @@ if ( $cgi->param('custnum') =~ /^(\d+)$/ ) { push @where, "cust_main.custnum = $1"; } +if ( $cgi->param('classnum') eq '0' ) { + push @where, "part_pkg.classnum IS NULL"; +} elsif ( $cgi->param('classnum') =~ /^(\d+)$/ ) { + push @where, "part_pkg.classnum = $1"; +} + if ( $cgi->param('out') ) { # wtf? how would you ever get exemptions on a non-taxable package location?