X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fgraph%2Felements%2Freport.html;h=2be511aecaf1da3aa70097c46884e94e5ff1e737;hb=dcac20b532a2420aeeddeea1e59c131e9d65f82e;hp=e24c6637d3360fd2791dc2ac16f08fe4fbb3a4e4;hpb=c1e2f536974812f05b8d3534ad2bf9c9ba40c24d;p=freeside.git
diff --git a/httemplate/graph/elements/report.html b/httemplate/graph/elements/report.html
index e24c6637d..2be511aec 100644
--- a/httemplate/graph/elements/report.html
+++ b/httemplate/graph/elements/report.html
@@ -105,11 +105,11 @@ any delimiter and linked from the elements in @data.
% $worksheet->write( $r, $c++, shift( @row_labels ) );
% foreach ( @{ shift( @data ) } ) {
% $total += $_;
-% $bottom_total[$c] += $_;
+% $bottom_total[$c-1] += $_;
% $worksheet->write($r, $c++, sprintf($sprintf, $_) );
% }
% unless ( $opt{'nototal'} ) {
-% $bottom_total[$c] += $total;
+% $bottom_total[$c-1] += $total;
% $worksheet->write($r, $c++, sprintf($sprintf, $total) );
% }
% }
@@ -163,9 +163,11 @@ any delimiter and linked from the elements in @data.
% } else {
%
<% include('/elements/header.html', $opt{'title'} ) %>
+% unless ( $opt{'graph_type'} eq 'none' ) {
% $cgi->param('_type', 'png');
+% }
% unless ( $opt{'disable_download'} ) { @@ -178,7 +180,7 @@ any delimiter and linked from the elements in @data. % } %
-<% include('/elements/table.html', 'e8e8e8') %> +<% include('/elements/table.html', 'f8f8f8') %>