diff --git a/app/views/deliverables/_finances.html.erb b/app/views/deliverables/_finances.html.erb index edaad78..d0a557d 100644 --- a/app/views/deliverables/_finances.html.erb +++ b/app/views/deliverables/_finances.html.erb @@ -112,3 +112,46 @@ <%# /div#activities %> + +
| <%= l(:field_labor) %> | +<%= l(:field_cost) %> | +<%= l(:field_hours) %> | + + + + <% deliverable.users_with_billable_time.sort.each do |user| %> + + <% content_tag_for(:tr, user, :class => 'labor ' + cycle('even','')) do %> ++ <%= h(user.name) %> + | ++ <%= number_to_currency(deliverable.spent_for_user(user, true), :precision => 0) %> + | ++ <%= number_with_precision(deliverable.hours_spent_for_user(user, true), :precision => 0) %> + | + <% end %> + + <% end %> +
|---|---|---|
| + Totals + | ++ <%= number_to_currency(deliverable.labor_budget_spent, :precision => 0) %> + | ++ <%= number_with_precision(deliverable.labor_hours_spent_total, :precision => 0) %> + | +