educode_sales 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a74ba09bc53597cf1bc110d4c32b29a405d7f4d25bb16287429327ac66799f49
4
- data.tar.gz: 6a0969f7bb8afa5ea2e34670164d9fd81f45a7ca085d8987492d10643b91ca5e
3
+ metadata.gz: 2f22bc4c0ef5a0ae9badb57ed14a6ea2d06f3ebb757746eb2b865cc1d9295c7f
4
+ data.tar.gz: 9a1d107c5a64574e40693890012cba94d9eb3593325db8723320dfbe56a3957b
5
5
  SHA512:
6
- metadata.gz: d522ae7272dc2de4f6c9d766b0f813a1e0812d7f455e0ec6ffc228887feb4647962e679c231c0f4c06b18ec87c44e09be95b9d5a77ddcd8e5abb2440272277e5
7
- data.tar.gz: 459678b2f2f085ad8eb877701637dbb8e52a72deb8fba6682ad1a99625cf0f26c276ff1fd8620342abb0d0a65c1b148220a9da56061076ce9cea61b071cf0477
6
+ metadata.gz: 7b67e1c0d5edc38a48f8e9dcebfac180fe01d4546cdf23cb98aeda429835de1e68221071fb62af3d30622101ddc3f64cec9d88a7c879a90642ba0e5d30faf466
7
+ data.tar.gz: e062d9eee3c4c6ceae7ffcea260dc8b4f2d107b74afbd67f68e440a7adc22031b48c21f24f7e25fa74339c931c55386b2e0bdbfa92a408225e2d1d4021690f02
@@ -352,9 +352,8 @@ module EducodeSales
352
352
  d.select! { |d| d.delete_if{|f| f == ''}.present? }
353
353
  end
354
354
 
355
-
356
-
357
355
  follow_up = last_follow_up.dup
356
+
358
357
  follow_up.assign_attributes(follow_up_params)
359
358
  follow_up.description = params[:content]
360
359
  if params[:service_time].present?
@@ -366,6 +365,8 @@ module EducodeSales
366
365
  follow_up.staff = @current_admin
367
366
 
368
367
  if follow_up.save!
368
+ last_follow_up.assign_follow_ups.update_all(follow_up_id: follow_up.id)
369
+
369
370
  contract_lists = EducodeSales::ContractDateList.clazzs.invert
370
371
  data.each_with_index do |s, i|
371
372
  if s.present?
@@ -1,3 +1,3 @@
1
1
  module EducodeSales
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: educode_sales
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - anke1460