diff options
-rw-r--r-- | httemplate/search/cust_bill_pkg.cgi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi index 188ddc067..4654425c9 100644 --- a/httemplate/search/cust_bill_pkg.cgi +++ b/httemplate/search/cust_bill_pkg.cgi @@ -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 |