fix line-item reports on taxclass-less regions
[freeside.git] / httemplate / search / cust_bill_pkg.cgi
index d048881..4ac9d9f 100644 (file)
@@ -122,6 +122,11 @@ if ( $cgi->param('out') ) {
   push @where, ' taxclass = '. dbh->quote( $cgi->param('taxclass') )
     if $cgi->param('taxclass');
 
+  if ( $cgi->param('taxclassNULL') ) {
+    my $same_sql = $r->sql_taxclass_sameregion;
+    push @where, $same_sql if $same_sql;
+  }
+
 }
 
 push @where, 'pkgnum != 0' if $cgi->param('nottax');