diff options
| author | ivan <ivan> | 2011-07-21 23:33:12 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2011-07-21 23:33:12 +0000 |
| commit | d1fa41850bf301ffd452a2649e147b928936ad97 (patch) | |
| tree | 4a591348c98b560ab783f2686a5d001e1a238bd0 /httemplate/search/cust_bill_pkg.cgi | |
| parent | cec7db21e591b758cd99b6d7df79ebfa5cade093 (diff) | |
fix tax reports for taxclass+non-taxclass cases, RT#13160
Diffstat (limited to 'httemplate/search/cust_bill_pkg.cgi')
| -rw-r--r-- | httemplate/search/cust_bill_pkg.cgi | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi index 9918cf1a3..58856f387 100644 --- a/httemplate/search/cust_bill_pkg.cgi +++ b/httemplate/search/cust_bill_pkg.cgi @@ -75,6 +75,7 @@ \&FS::UI::Web::cust_fields, ], 'sort_fields' => [ + '', 'setup', #broken in $unearned case i guess ( $unearned ? ('', '') : () ), ( $use_usage eq 'recurring' ? 'recur - usage' : @@ -204,12 +205,9 @@ if ( $cgi->param('taxclass') # #} else { - push @where, - ' ( '. join(' OR ', - map ' part_pkg.taxclass = '.dbh->quote($_), - $cgi->param('taxclass') - ). - ' ) '; + push @where, ' part_pkg.taxclass IN ( '. + join(', ', map dbh->quote($_), $cgi->param('taxclass') ). + ' ) '; #} @@ -315,6 +313,7 @@ if ( $cgi->param('out') ) { die "unknown base region for empty taxclass" unless $cust_main_county; my $same_sql = $cust_main_county->sql_taxclass_sameregion; + $same_sql =~ s/taxclass/part_pkg.taxclass/g; push @where, $same_sql if $same_sql; } |
