| <%= cnumber[3]%> |
<%= old_reps.size%> |
<%= reports.size%> |
<%= old_reps.select{|i| i.category != 25}.size%> |
<%= reports.select{|i| i.category != 25}.size%> |
<%= old_reps.select{|i| i.client_type == 1}.size%> |
<%= reports.select{|i| i.client_type == 1}.size%> |
<%= old_reps.select{|i| i.client_type == 0}.size%> |
<%= reports.select{|i| i.client_type == 0}.size%> |
<%= old_reps.select{|i| ([26, 27, 93].include? i.category)}.size%> |
<%= reports.select{|i| ([26, 27, 93].include? i.category)}.size%> |
<%= old_reps.select{|i| i.payment_detail == 4}.size%> |
<%= reports.select{|i| i.payment_detail == 4}.size%> |
<%= old_reps.select{|i| i.payment_detail == 10}.size%> |
<%= reports.select{|i| i.payment_detail == 10}.size%> |
<%= a=reports.select{|i| ([26, 27, 93].include? i.category) && (i.kpi/3600) < 4 }.size %> |
<%= b=reports.select{|i| ([26, 27, 93].include? i.category) && (i.kpi/3600) > 4 && (i.kpi/3600) < 24}.size %> |
<%= c=reports.select{|i| ([26, 27, 93].include? i.category) && (i.kpi/3600) > 24 && (i.kpi/3600) < 48}.size %> |
<%= d=reports.select{|i| ([26, 27, 93].include? i.category) && (i.kpi/3600) > 48}.size %> |
<%= (((c.to_f+d)/(a.to_f+b))*100).round(2) if (a+b > 0)%> |
<% end %>
| <%= h Russian::strftime(Date.new(@date_from.year, month), "%B %Y") %> |
<%= old_reps.size%> |
<%= reports.size%> |
<%= old_reps.select{|i| i.category != 25}.size%> |
<%= reports.select{|i| i.category != 25}.size%> |
<%= old_reps.select{|i| i.client_type == 1}.size%> |
<%= reports.select{|i| i.client_type == 1}.size%> |
<%= old_reps.select{|i| i.client_type == 0}.size%> |
<%= reports.select{|i| i.client_type == 0}.size%> |
<%= old_reps.select{|i| ([26, 27, 93].include? i.category)}.size%> |
<%= reports.select{|i| ([26, 27, 93].include? i.category)}.size%> |
<%= old_reps.select{|i| i.payment_detail == 4}.size%> |
<%= reports.select{|i| i.payment_detail == 4}.size%> |
<%= old_reps.select{|i| i.payment_detail == 10}.size%> |
<%= reports.select{|i| i.payment_detail == 10}.size%> |
<%= a=reports.select{|i| ([26, 27, 93].include? i.category) && (i.kpi/3600) < 4 }.size %> |
<%= b=reports.select{|i| ([26, 27, 93].include? i.category) && (i.kpi/3600) > 4 && (i.kpi/3600) < 24}.size %> |
<%= c=reports.select{|i| ([26, 27, 93].include? i.category) && (i.kpi/3600) > 24 && (i.kpi/3600) < 48}.size %> |
<%= d=reports.select{|i| ([26, 27, 93].include? i.category) && (i.kpi/3600) > 48}.size %> |
<%= (((c.to_f+d)/(a.to_f+b))*100).round(2) if (a+b > 0)%> |
<% end %>