diff options
author | ivan <ivan> | 2008-11-02 19:40:35 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-11-02 19:40:35 +0000 |
commit | de602da29b21203c4526a391c50d27cbf2e92fec (patch) | |
tree | 0779908ce5aed73d250781b775996d91ff33b665 /httemplate/search/report_tax.cgi | |
parent | 5e07568b456148fa0e57d07e7ee8cf9e39ce9549 (diff) |
(and fix the total too) fix overreporting of tax invoiced when using & reporting with taxclasses, RT#4131
Diffstat (limited to 'httemplate/search/report_tax.cgi')
-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 155993fea..7585caa15 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; } } |