diff options
author | ivan <ivan> | 2008-11-02 19:40:37 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-11-02 19:40:37 +0000 |
commit | 78eaeff1d9e82316295ab54592d681d2f49b3819 (patch) | |
tree | 4a26776e7298f0e0115c82936fffd4984fff9824 /httemplate | |
parent | 5897c961753eef5d9e22df79b44e323c7ef04daa (diff) |
(and fix the total too) fix overreporting of tax invoiced when using & reporting with taxclasses, RT#4131
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/search/report_tax.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi index 3316ee472..62a3645db 100755 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -477,7 +477,7 @@ foreach my $r ( qsearch(\%qsearch) ) { my $x = &{$_taxamount_sub}($r); - $tax += $x; + $tax += $x unless $cgi->param('show_taxclasses'); $regions{$label}->{'tax'} += $x; } @@ -495,6 +495,7 @@ if ( $cgi->param('show_taxclasses') ) { $base_regions{$base_label}->{'url_param'} = join(';', map "$_=".$r->$_(), qw( county state country ) ); $base_regions{$base_label}->{'tax'} += $x; + $tax += $x; } } |