+if ( $cgi->param('taxnum') ) {
+
+ my @taxnums = grep /^\d+$/, map { split(',', $_) } $cgi->param('taxnum');
+ if ( $cgi->param('taxnum') =~ /^([\d,]+)$/) {
+ push @where, "cust_tax_exempt_pkg.taxnum IN ($1)";
+ }
+
+}
+
+if ( $cgi->param('classnum') =~ /^(\d+)$/ ) {
+ push @where, "COALESCE(part_pkg.classnum,0) = $1";
+}
+
+# no reason ever to show the negative exemptions created by credits.
+# they'll just confuse people.
+push @where, "creditbillpkgnum IS NULL";
+