@@ -8,9 +8,9 | |||
|
8 | 8 | <% total = 0 -%> |
|
9 | 9 | <% @report.periods.each do |period| -%> |
|
10 | 10 | <% sum = sum_hours(select_hours(hours_for_value, @report.columns, period.to_s)); total += sum -%> |
|
11 |
<td class="hours"><%= html_hours( |
|
|
11 | <td class="hours"><%= html_hours(format_hours(sum)) if sum > 0 %></td> | |
|
12 | 12 | <% end -%> |
|
13 |
<td class="hours"><%= html_hours( |
|
|
13 | <td class="hours"><%= html_hours(format_hours(total)) if total > 0 %></td> | |
|
14 | 14 | </tr> |
|
15 | 15 | <% if criterias.length > level+1 -%> |
|
16 | 16 | <%= render(:partial => 'report_criteria', :locals => {:criterias => criterias, :hours => hours_for_value, :level => (level + 1)}) %> |
@@ -52,9 +52,9 | |||
|
52 | 52 | <% total = 0 -%> |
|
53 | 53 | <% @report.periods.each do |period| -%> |
|
54 | 54 | <% sum = sum_hours(select_hours(@report.hours, @report.columns, period.to_s)); total += sum -%> |
|
55 |
<td class="hours"><%= html_hours( |
|
|
55 | <td class="hours"><%= html_hours(format_hours(sum)) if sum > 0 %></td> | |
|
56 | 56 | <% end -%> |
|
57 |
<td class="hours"><%= html_hours( |
|
|
57 | <td class="hours"><%= html_hours(format_hours(total)) if total > 0 %></td> | |
|
58 | 58 | </tr> |
|
59 | 59 | </tbody> |
|
60 | 60 | </table> |
General Comments 0
You need to be logged in to leave comments.
Login now