<%= l(:caption_materials_budget)%>
<% unless @deliverable.deliverable_costs.empty? %>
<%= l(:caption_cost_unit_plural)%> |
<%= l(:caption_cost_type) %> |
<% if show_cost_budget_col %>
<%= l(:caption_budget) %> |
<%end%>
<% @deliverable.deliverable_costs.each do |deliverable_cost| %>
<%=h pluralize(deliverable_cost.units, deliverable_cost.cost_type.unit, deliverable_cost.cost_type.unit_plural) %> |
<%=h deliverable_cost.cost_type.name %> |
<% if show_cost_budget_col %>
<%= number_to_currency(deliverable_cost.costs) %> |
<% end %>
<% end %>
<% if show_cost_budget_col %>
<%= number_to_currency(@deliverable.materials_budget) %> |
<% end %>
<% end %>
|
<%= l(:caption_labor_budget)%>
<% unless @deliverable.deliverable_hours.empty? %>
<%= l(:field_hours)%> |
<%= l(:label_user) %> |
<% if show_hour_budget_col %>
<%= l(:caption_budget) %> |
<%end%>
<% @deliverable.deliverable_hours.each do |deliverable_hour| %>
<%= deliverable_hour.hours %>h |
<%=h deliverable_hour.user.name %> |
<% if show_hour_budget_col %>
<%= number_to_currency(deliverable_hour.costs) %> |
<% end %>
<% end %>
<% if User.current.allowed_to?(:view_all_rates, @project) %>
<%= number_to_currency(@deliverable.labor_budget) %> |
<% end %>
<% end %>
|