diff options
| author | ivan <ivan> | 2008-11-02 20:03:30 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2008-11-02 20:03:30 +0000 | 
| commit | 54e6a299668387fd2b0256e8ec0ed10f5caea871 (patch) | |
| tree | 85f50fa4e64483b6fd2d6f5d5d5ad08098b0878a | |
| parent | de602da29b21203c4526a391c50d27cbf2e92fec (diff) | |
(and fix the line-item links too, whew) fix overreporting of tax invoiced when using & reporting with taxclasses, RT#4131
| -rwxr-xr-x | httemplate/search/report_tax.cgi | 10 | 
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi index 7585caa15..21b42e370 100755 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -492,8 +492,16 @@ if ( $cgi->param('show_taxclasses') ) {      my $base_label = getlabel($r, 'no_taxclass'=>1 );      $base_regions{$base_label}->{'label'} = $base_label; +      $base_regions{$base_label}->{'url_param'} = -      join(';', map "$_=".$r->$_(), qw( county state country ) ); +      join(';', map "$_=".$r->$_(), qw( county state country ) ); #taxname??? + +    if ( $r->taxclass ) { +      $base_regions{$base_label}->{'url_param'} .= ';taxclass='. $r->taxclass; +    } else { +      $base_regions{$base_label}->{'url_param'} .= ';taxclassNULL=1' +    } +      $base_regions{$base_label}->{'tax'} += $x;      $tax += $x;    }  | 
