diff --git a/app/views/deliverables/_finances.html.erb b/app/views/deliverables/_finances.html.erb index 26aeae5..2d1f9b3 100644 --- a/app/views/deliverables/_finances.html.erb +++ b/app/views/deliverables/_finances.html.erb @@ -6,3 +6,56 @@
| <%= l(:field_labor) %> | +<%= l(:field_cost) %> | +<%= l(:field_hours) %> | + + + + <%# Each labor activity + non-budgeted activities %> + <% deliverable.billable_time_entry_activities.each do |activity| %> + + <% content_tag_for(:tr, activity, :class => 'labor ' + cycle('even','')) do %> ++ <%= h(activity.name) %> + | ++ <%= number_to_currency(deliverable.spent_for_activity(activity), :precision => 0) %> + | ++ <%= number_to_currency(deliverable.budget_for_activity(activity), :precision => 0) %> + | ++ <%= number_with_precision(deliverable.hours_spent_for_activity(activity), :precision => 0) %> + | ++ <%= number_with_precision(deliverable.hours_budget_for_activity(activity), :precision => 0) %> + | + <% end %> + + <% end %> +
|---|---|---|---|---|
| + Totals + | ++ $80 + | ++ $100 + | ++ 1.5 + | ++ 2 + | +