@@ -2,9 +2,9 | |||||
2 | <% hours_for_value = select_hours(hours, criterias[level], value) -%> |
|
2 | <% hours_for_value = select_hours(hours, criterias[level], value) -%> | |
3 | <% next if hours_for_value.empty? -%> |
|
3 | <% next if hours_for_value.empty? -%> | |
4 | <tr class="<%= cycle('odd', 'even') %> <%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>"> |
|
4 | <tr class="<%= cycle('odd', 'even') %> <%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>"> | |
5 |
<%= |
|
5 | <%= ("<td></td>" * level).html_safe %> | |
6 | <td><%= h(format_criteria_value(@report.available_criteria[criterias[level]], value)) %></td> |
|
6 | <td><%= h(format_criteria_value(@report.available_criteria[criterias[level]], value)) %></td> | |
7 |
<%= |
|
7 | <%= ("<td></td>" * (criterias.length - level - 1)).html_safe -%> | |
8 | <% total = 0 -%> |
|
8 | <% total = 0 -%> | |
9 | <% @report.periods.each do |period| -%> |
|
9 | <% @report.periods.each do |period| -%> | |
10 | <% sum = sum_hours(select_hours(hours_for_value, @report.columns, period.to_s)); total += sum -%> |
|
10 | <% sum = sum_hours(select_hours(hours_for_value, @report.columns, period.to_s)); total += sum -%> |
General Comments 0
You need to be logged in to leave comments.
Login now