X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_tax_exempt_pkg.cgi;h=267c9383a62a90c13e4472ba30ea58cbe849eedb;hb=baf5cfb99275c060748ec1c212e646759af6e96b;hp=40b9ed78fdc978045746f27015e0bf73b8aa0228;hpb=17f3cbeb3bdde5ca7b3c82d04e29f523320f250d;p=freeside.git diff --git a/httemplate/search/cust_tax_exempt_pkg.cgi b/httemplate/search/cust_tax_exempt_pkg.cgi index 40b9ed78f..267c9383a 100644 --- a/httemplate/search/cust_tax_exempt_pkg.cgi +++ b/httemplate/search/cust_tax_exempt_pkg.cgi @@ -118,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?