X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.cgi;h=0bec85d700768fd323975b0ccb1495c05abed351;hp=21b42e370a4751b63936b209517ffc91a827ebaf;hb=af0bf34fadc9bb398e54560657dce51987c975a9;hpb=54e6a299668387fd2b0256e8ec0ed10f5caea871 diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi index 21b42e370..0bec85d70 100755 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -301,7 +301,10 @@ foreach my $r ( qsearch({ 'table' => 'cust_main_county', my $label = getlabel($r); $regions{$label}->{'label'} = $label; - $regions{$label}->{'url_param'} = join(';', map "$_=".$r->$_(), qw( county state country ) ); + $regions{$label}->{'url_param'} = + join(';', map "$_=".uri_escape($r->$_()), + qw( county state country taxname ) + ); my @param = @base_param; my $mywhere = $where; @@ -310,7 +313,7 @@ foreach my $r ( qsearch({ 'table' => 'cust_main_county', $mywhere .= " AND taxclass = ? "; push @param, 'taxclass'; - $regions{$label}->{'url_param'} .= ';taxclass='. $r->taxclass + $regions{$label}->{'url_param'} .= ';taxclass='. uri_escape($r->taxclass) if $cgi->param('show_taxclasses'); } else { @@ -494,13 +497,9 @@ if ( $cgi->param('show_taxclasses') ) { $base_regions{$base_label}->{'label'} = $base_label; $base_regions{$base_label}->{'url_param'} = - 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' - } + join(';', map "$_=". uri_escape($r->$_()), + qw( county state country taxname ) + ); $base_regions{$base_label}->{'tax'} += $x; $tax += $x;