X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.cgi;h=1841903e08a7196ecea93aa1a45895dc1ea08717;hb=58323c34f3dd367739d9b3c4c67e5b147f9fc882;hp=42a52d154b2f2a4232a71945d6eac1d4e459ff60;hpb=3185fe4edea62dd3fa9818cf80902e96fe2a2d21;p=freeside.git
diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi
index 42a52d154..1841903e0 100755
--- a/httemplate/search/report_tax.cgi
+++ b/httemplate/search/report_tax.cgi
@@ -15,8 +15,15 @@ Download full results
as Excel spreadsheet
+
<% include('/elements/table-grid.html') %>
-
+ <% $class->{classname} %> |
+
+% }
+
% my $bgcolor1 = '#eeeeee';
% my $bgcolor2 = '#ffffff';
% my $bgcolor;
-%
+
+% my @regions = @{ $class->{regions} };
% foreach my $region ( @regions ) {
%
% my $link = '';
+% if ( $with_pkgclass and length($class->{classnum}) ) {
+% $link = ';classnum='.$class->{classnum};
+% } # else we're not breaking down pkg class, or this is the grand total
+%
% if ( $region->{'label'} eq $out ) {
-% $link = ';out=1';
+% $link .= ';out=1';
% } elsif ( $region->{'taxnums'} ) {
% # might be nicer to specify this as country:state:city
-% $link = ';'.join(';', map { "taxnum=$_" } @{ $region->{'taxnums'} });
+% $link .= ';'.join(';', map { "taxnum=$_" } @{ $region->{'taxnums'} });
% }
%
% if ( $bgcolor eq $bgcolor1 ) {
@@ -87,15 +107,20 @@ as