diff options
| author | Mark Wells <mark@freeside.biz> | 2014-11-04 13:56:12 -0800 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2014-11-04 13:56:12 -0800 |
| commit | b4cbc3a5ceeb64f3671e5b1be70a331d6af3fe69 (patch) | |
| tree | 95b52448e10f18d6831d4f77120d3637bf7d9a9d /httemplate/search/cust_bill_pkg.cgi | |
| parent | df8fe44f26084604b3a58a47651840b30bdff533 (diff) | |
bring new tax liability report to 3.x, #25935, #26589, #27698
Diffstat (limited to 'httemplate/search/cust_bill_pkg.cgi')
| -rw-r--r-- | httemplate/search/cust_bill_pkg.cgi | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi index 6bb09d7d9..c254b2dee 100644 --- a/httemplate/search/cust_bill_pkg.cgi +++ b/httemplate/search/cust_bill_pkg.cgi @@ -388,12 +388,8 @@ if ( $cgi->param('nottax') ) { } # specific taxnums - if ( $cgi->param('taxnum') ) { - my $taxnum_in = join(',', - grep /^\d+$/, $cgi->param('taxnum') - ); - push @tax_where, "cust_main_county.taxnum IN ($taxnum_in)" - if $taxnum_in; + if ( $cgi->param('taxnum') =~ /^([0-9,]+)$/ ) { + push @tax_where, "cust_main_county.taxnum IN ($1)"; } # If we're showing exempt items, we need to find those with @@ -557,12 +553,8 @@ if ( $cgi->param('nottax') ) { } # specific taxnums - if ( $cgi->param('taxnum') ) { - my $taxnum_in = join(',', - grep /^\d+$/, $cgi->param('taxnum') - ); - push @where, "cust_main_county.taxnum IN ($taxnum_in)" - if $taxnum_in; + if ( $cgi->param('taxnum') =~ /^([0-9,]+)$/ ) { + push @where, "cust_main_county.taxnum IN ($1)"; } # report group (itemdesc) |
