% content_for :head do %> <%= stylesheet_link_tag "filters" , :media => "all"%> <% end %>
| Сотрудник | Дата | Кол-во отчетов | Кол-во мастеров | З/п мастеров | З/п диспетчеров |
|---|---|---|---|---|---|
| class="left"><%=m %> | |||||
|
<%= Russian::strftime(zp.shift_date, "%d %B %Y")%> [<%= @schedule.type_of_day(zp.shift_date.day) %>] <% reports = all_reps.select{|i| i.date.to_date == zp.shift_date} %> |
<%= link_to (reports.size), ams_index_path(:filter_day => zp.shift_date.to_date.day, :filter_month => zp.shift_date.to_date.month, :filter_year => zp.shift_date.to_date.year), :target => '_blank' %> | <%= reports.map{|i| i.done_employees}.flatten.map{|i| i.empl_id}.uniq.size%> | <%= n reports.map{|i| i.sum.to_f}.sum%> | <%= n reports.map{|i| i.disp_wage.to_f}.sum%> | |
| ИТОГО: | <% all_reps.flatten!%><%=link_to all_reps.count, ams_index_path(:manager => days.first.employee_id, :filter_month => days.first.shift_date.to_date.month, :filter_year => days.first.shift_date.to_date.year, :filter_worktype => ((@cats.nil? || @cats.size > 1) ? "" : @cats.first)), :target => '_blank' %><% ac_w = all_reps.select{|i| i.total_sum_works.to_f > 0}.count %><% ac_m = all_reps.select{|i| i.total_sum_materials.to_f > 0}.count %> | <%= n all_reps.map{|i| i.done_employees}.flatten.map{|i| i.empl_id}.uniq.size%> | <%= n all_reps.map{|i| i.sum.to_f}.sum%> | <%= n all_reps.map{|i| i.disp_wage.to_f}.sum%> | |