projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e07568
)
(and fix the total too) fix overreporting of tax invoiced when using & reporting...
author
ivan
<ivan>
Sun, 2 Nov 2008 19:40:35 +0000
(19:40 +0000)
committer
ivan
<ivan>
Sun, 2 Nov 2008 19:40:35 +0000
(19:40 +0000)
httemplate/search/report_tax.cgi
patch
|
blob
|
history
diff --git
a/httemplate/search/report_tax.cgi
b/httemplate/search/report_tax.cgi
index
155993f
..
7585caa
100755
(executable)
--- 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);
my $x = &{$_taxamount_sub}($r);
- $tax += $x;
+ $tax += $x
unless $cgi->param('show_taxclasses')
;
$regions{$label}->{'tax'} += $x;
}
$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;
$base_regions{$base_label}->{'url_param'} =
join(';', map "$_=".$r->$_(), qw( county state country ) );
$base_regions{$base_label}->{'tax'} += $x;
+ $tax += $x;
}
}
}
}