@@ -6,7 +6,7 | |||||
6 | <% hours_for_value = select_hours(hours, criterias[level], value.id) %> |
|
6 | <% hours_for_value = select_hours(hours, criterias[level], value.id) %> | |
7 | <% @periods.each do |period| %> |
|
7 | <% @periods.each do |period| %> | |
8 | <% sum = sum_hours(select_hours(hours_for_value, @columns, period.to_s)) %> |
|
8 | <% sum = sum_hours(select_hours(hours_for_value, @columns, period.to_s)) %> | |
9 | <td align="center"><%= sum > 0 ? sum : "-" %></td> |
|
9 | <td align="center"><%= sum > 0 ? "%.2f" % sum : "-" %></td> | |
10 | <% end %> |
|
10 | <% end %> | |
11 | </tr> |
|
11 | </tr> | |
12 | <% if criterias.length > level+1 %> |
|
12 | <% if criterias.length > level+1 %> |
General Comments 0
You need to be logged in to leave comments.
Login now