educode_sales 1.10.46 → 1.10.48
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da45d6ae994d92a3ef3274e654b591e9165ba976e765e2c8e09b786f7f0b5c05
|
4
|
+
data.tar.gz: fe907bc45b55f7dbe5b454eb785693302f460622576a7a14cde80efc9cf3d293
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dc1ac6fd68d7a04df6f28d39a74f565701600b25348c60a6586f3b8027f63b796132489e6f0dd37e4a896ee9241f44c5764ec5f4fb2e740b38033060c0ff10f
|
7
|
+
data.tar.gz: b3b6130b8e98a8b5bdd05281af4f7faf27e690725de86337fec94abf974b8be798f8a451ed4f549affbe8e548bd66bd485b3f177a80b70e57f74f59c49459fe1
|
Binary file
|
@@ -114,11 +114,15 @@ module EducodeSales
|
|
114
114
|
last_follow_up = @business.last_follow_up
|
115
115
|
if @business.clazz.present?
|
116
116
|
follow_up.clazz_changed = @business.clazz_id != follow_up.clazz_id
|
117
|
-
if follow_up.clazz_changed
|
117
|
+
if follow_up.clazz_changed
|
118
118
|
if @business.clazz.extras == 'a_class'
|
119
119
|
@business.state_id = 3
|
120
120
|
end
|
121
|
-
|
121
|
+
if @business.clazz.extras.present? && follow_up.clazz.extras.present?
|
122
|
+
clazz_changes = "#{@business.clazz.extras.split('_')[0]}-#{follow_up.clazz.extras.split('_')[0]}"
|
123
|
+
else
|
124
|
+
clazz_changes = "-"
|
125
|
+
end
|
122
126
|
business_clazz_change = EducodeSales::BusinessClazzChange.find_or_initialize_by(business_id: @business.id, clazz_changed: clazz_changes)
|
123
127
|
business_clazz_change.save unless business_clazz_change.persisted?
|
124
128
|
end
|
@@ -206,8 +206,19 @@ module EducodeSales
|
|
206
206
|
if params[:q].present? && params[:q][:is_contact].present?
|
207
207
|
@teachers = @teachers.where("last_follow.is_contact = ?", params[:q][:is_contact].to_i)
|
208
208
|
end
|
209
|
-
|
210
|
-
|
209
|
+
if params[:sort].present? && params[:sort][:field] && params[:sort][:field] == 'created_at'
|
210
|
+
@teachers = @teachers.order("educode_sales_teachers.created_at #{params[:sort][:order]}")
|
211
|
+
elsif params[:sort].present? && params[:sort][:field] && params[:sort][:field] == 'last_login_on'
|
212
|
+
@teachers = @teachers.order("users.last_login_on #{params[:sort][:order]}")
|
213
|
+
elsif params[:sort].present? && params[:sort][:field] && params[:sort][:field] == 'created_on'
|
214
|
+
@teachers = @teachers.order("users.created_on #{params[:sort][:order]}")
|
215
|
+
elsif params[:sort].present? && params[:sort][:field] && params[:sort][:field] == 'latest_time'
|
216
|
+
@teachers = @teachers.order("last_follow.created_at #{params[:sort][:order]}")
|
217
|
+
elsif params[:sort].present? && params[:sort][:field] && params[:sort][:field] == 'experience'
|
218
|
+
@teachers = @teachers.order("users.experience #{params[:sort][:order]}")
|
219
|
+
elsif params[:sort].present? && params[:sort][:field] && params[:sort][:field] == 'grade'
|
220
|
+
@teachers = @teachers.order("users.grade #{params[:sort][:order]}")
|
221
|
+
elsif params[:sort].present? && params[:sort][:field]
|
211
222
|
@teachers = @teachers.order("#{params[:sort][:field]} #{params[:sort][:order]}")
|
212
223
|
else
|
213
224
|
@teachers = @teachers.order("educode_sales_teachers.created_at desc")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: educode_sales
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.48
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- anke1460
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- app/assets/images/educode_sales/icon-login.png
|
106
106
|
- app/assets/images/educode_sales/icon.png
|
107
107
|
- app/assets/images/educode_sales/indexLogo.png
|
108
|
+
- app/assets/images/educode_sales/indexlogo.png
|
108
109
|
- app/assets/images/educode_sales/loading-0.gif
|
109
110
|
- app/assets/images/educode_sales/loading-1.gif
|
110
111
|
- app/assets/images/educode_sales/loading-2.gif
|
@@ -761,7 +762,7 @@ homepage: https://www.educoder.net
|
|
761
762
|
licenses:
|
762
763
|
- MIT
|
763
764
|
metadata: {}
|
764
|
-
post_install_message:
|
765
|
+
post_install_message:
|
765
766
|
rdoc_options: []
|
766
767
|
require_paths:
|
767
768
|
- lib
|
@@ -776,8 +777,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
776
777
|
- !ruby/object:Gem::Version
|
777
778
|
version: '0'
|
778
779
|
requirements: []
|
779
|
-
rubygems_version: 3.0.
|
780
|
-
signing_key:
|
780
|
+
rubygems_version: 3.0.9
|
781
|
+
signing_key:
|
781
782
|
specification_version: 4
|
782
783
|
summary: Summary of EducodeSales.
|
783
784
|
test_files: []
|