sales report improvements, #15393
[freeside.git] / httemplate / graph / elements / report.html
index e24c663..2be511a 100644 (file)
@@ -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'); 
 
 <IMG SRC="<% $cgi->self_url %>" WIDTH="976" HEIGHT="384">
+% }
 <P ALIGN="right">
 
 % unless ( $opt{'disable_download'} ) { 
@@ -178,7 +180,7 @@ any delimiter and linked from the elements in @data.
 % } 
 %
 </P>
-<% include('/elements/table.html', 'e8e8e8') %>
+<% include('/elements/table.html', 'f8f8f8') %>
 
 <TR>