% validated_period = validate_period(deliverable, period) %>
<%= link_to(l(:button_edit), edit_contract_deliverable_path(@project, contract, deliverable), :class => 'icon icon-edit') %>
<%= link_to(l(:button_delete), contract_deliverable_path(@project, contract, deliverable), :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') if contract.open? %>
<%= textilizable(deliverable, :notes) %>
<% if deliverable.retainer? %>
<% end %>
<%= show_field(deliverable, :current_period, :html_options => {:class => 'deliverable-current-period'}) if deliverable.retainer? %>
| <%= release(5, "Retainer lightbox") %> |
<%= show_field(deliverable, :start_date, :format => :format_date, :html_options => {:class => 'deliverable-start-date'}) %>
<%= show_field(deliverable, :end_date, :format => :format_date, :html_options => {:class => 'deliverable-end-date'}) %>
| |
<%= l(:field_spent) %> |
<%= l(:field_budget) %> |
<%= l(:field_hours) %> |
<%= l(:field_estimated) %> |
|
|
|
|
|
|
<%= link_to(l(:field_labor), finances_contract_deliverable_path(@project, contract, deliverable), :class => 'deliverable-action-link deliverable-lightbox', "data-deliverable-id" => h(deliverable.id)) %>
|
<%= h(format_value_field_for_contracts(deliverable.labor_budget_spent(validated_period))) %>
|
<%= h(format_value_field_for_contracts(deliverable.labor_budget_total(validated_period))) %> |
<%= h(format_value_field_for_contracts(deliverable.labor_hours_spent_total(validated_period))) %> <%= l(:text_short_hours) %>
|
<%= h(format_value_field_for_contracts(deliverable.labor_budget_hours(validated_period))) %> <%= l(:text_short_hours) %>
|
|
<%= link_to(l(:field_overhead), finances_contract_deliverable_path(@project, contract, deliverable), :class => 'deliverable-action-link deliverable-lightbox', "data-deliverable-id" => h(deliverable.id)) %>
|
<%= h(format_value_field_for_contracts(deliverable.overhead_spent(validated_period))) %>
|
<%= h(format_value_field_for_contracts(deliverable.overhead_budget_total(validated_period))) %> |
<%= h(format_value_field_for_contracts(deliverable.overhead_hours_spent_total(validated_period))) %> <%= l(:text_short_hours) %>
|
<%= h(format_value_field_for_contracts(deliverable.overhead_budget_hours(validated_period))) %> <%= l(:text_short_hours) %>
|
<% deliverable.fixed_budgets.by_period(validated_period).each do |fixed_budget| %>
<% next if fixed_budget.blank_record? %>
| <%= h(fixed_budget.title) %> |
<%= h(format_value_field_for_contracts(fixed_budget.budget_spent)) %>
|
<%= h(format_value_field_for_contracts(fixed_budget.budget)) %> |
|
|
<% end %>
<% if show_markup_for?(deliverable, validated_period) %>
| <%= l(:field_markup) %> |
<%= h(format_value_field_for_contracts(deliverable.fixed_markup_budget_total_spent(validated_period))) %>
|
<%= h(format_value_field_for_contracts(deliverable.fixed_markup_budget_total(validated_period))) %> |
|
|
<% end %>
| <%= l(:field_profit) %> |
<%= h(format_value_field_for_contracts(deliverable.profit_left(validated_period))) %>
|
<%= h(format_value_field_for_contracts(deliverable.profit_budget(validated_period))) %> |
|
|
| <%= l(:field_total) %>: |
<%= h(format_value_field_for_contracts(deliverable.total_spent(validated_period))) %>
|
<%= h(format_value_field_for_contracts(deliverable.total(validated_period))) %> |
<%= h(format_value_field_for_contracts(deliverable.hours_spent_total(validated_period))) %> <%= l(:text_short_hours) %>
|
<%= h(format_value_field_for_contracts(deliverable.estimated_hour_budget_total(validated_period))) %> <%= l(:text_short_hours) %>
|
| <%= l(:label_issue_status_plural) %> |
<% deliverable.issues_by_status.each do |status, issues| %>
|
<%= link_to_issue_list_with_filter(status.name,
:deliverable_id => deliverable.id,
:status_id => status.id) %>
|
<%= link_to_issue_list_with_filter(issues.length,
:deliverable_id => deliverable.id,
:status_id => status.id) %>
|
<% end %>
|
<%= link_to_issue_list_with_filter(l(:label_all).capitalize,
:deliverable_id => deliverable.id) %>
|
<%= link_to_issue_list_with_filter(deliverable.issues.count,
:deliverable_id => deliverable.id) %>
|
|