From ba4e502ef582e72601a1548d04dd059e20735c71 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 27 May 2009 22:32:04 +0000 Subject: [PATCH] and multiple taxlcasses. i think that should actually do it for now on RT#5446 --- httemplate/search/cust_bill_pkg.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.11.0