Commit 4670426e authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Hours displayed using %.2f on time report.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@588 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 05c18887
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<% hours_for_value = select_hours(hours, criterias[level], value.id) %> <% hours_for_value = select_hours(hours, criterias[level], value.id) %>
<% @periods.each do |period| %> <% @periods.each do |period| %>
<% sum = sum_hours(select_hours(hours_for_value, @columns, period.to_s)) %> <% sum = sum_hours(select_hours(hours_for_value, @columns, period.to_s)) %>
<td align="center"><%= sum > 0 ? sum : "-" %></td> <td align="center"><%= sum > 0 ? "%.2f" % sum : "-" %></td>
<% end %> <% end %>
</tr> </tr>
<% if criterias.length > level+1 %> <% if criterias.length > level+1 %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment