% content_for :head do %> <%= stylesheet_link_tag "filters" , :media => "all"%> <% end %>
| Сотрудник | Дата | Кол-во отчетов | Сумма по отчетам | З/п диспетчера |
|---|---|---|---|---|
| class="left" id=<%="n_"+days.first.employee_id.to_s%>><%=m %> | ||||
| <%= Russian::strftime(zp.shift_date, "%d %B %Y")%> [<%= @schedule.type_of_day(zp.shift_date.day) %>] | <%= reports.size %> | <% if @date < "01.07.2017".to_date%><%= sum = zp.reports.map{|i| i.sum}.sum.to_i %> | <% else %><%= sum = zp.reports.map{|i| if i.category == 19 then (if i.sum.to_f < 170 then 0 else i.sum.to_f - 170 end) else i.sum end}.sum.to_i %> | <% end %> <% all_rep_sum += sum %><%= zp_sum= sum * @schedule.ams_percent_for_day(zp.shift_date.day) / 100%><% all_sum += zp_sum %> |
| ИТОГО: | <% all_reps.flatten!%><%= all_reps.count %> | <%= all_rep_sum %> | ><%= all_sum %> | |