format & link the total column
[freeside.git] / httemplate / graph / money_time.cgi
index d458405..67b8212 100644 (file)
@@ -95,7 +95,9 @@ my @mon = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
     </TD>
     <% $total += $column; %>
   <% } %>
-  <TD><%= sprintf("%.2f", $total) %></TD>
+  <TD ALIGN="right" BGCOLOR="#eeeeee">
+    <%= $link ? $link. 'begin='. @{$data->{speriod}}[0]. ';end='. @{$data->{speriod}}[0]. '">' : '' %><FONT COLOR="#<%= $color{$row} %>">$<%= sprintf("%.2f", $total) %></FONT><%= $link ? '</A>' : '' %>
+  </TD>
   </TR>
 <% } %>
 </TABLE>