and multiple taxlcasses. i think that should actually do it for now on RT#5446
authorivan <ivan>
Wed, 27 May 2009 22:32:04 +0000 (22:32 +0000)
committerivan <ivan>
Wed, 27 May 2009 22:32:04 +0000 (22:32 +0000)
httemplate/search/cust_bill_pkg.cgi

index 188ddc0..4654425 100644 (file)
@@ -95,7 +95,10 @@ if ( $cgi->param('classnum') =~ /^(\d+)$/ ) {
   }
 }
 
-push @where, map ' taxclass = '.dbh->quote($_), $cgi->param('taxclass')
+push @where, ' ( '. join(' OR ',
+                      map ' taxclass = '.dbh->quote($_), $cgi->param('taxclass')
+                    ).
+             ' ) '
   if $cgi->param('taxclass')
   && ! $cgi->param('istax'); #no part_pkg.taxclass in this case
                              #(should we save a taxclass or a link to taxnum