educode_sales 0.4.1 → 0.4.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: a53a5638c3708924d823c7d38345f07e6200af65a51f2264d8594751b35e02d6
4
- data.tar.gz: 1fe5e13bf4abbd2462563ba1c1e5c58b045276866f06632f5bb8974f43b44fee
3
+ metadata.gz: 41790fb0313e3f22aff7bbd0046de7bd203e8523b72cfa22712cbf12f9cbb61d
4
+ data.tar.gz: 1bc23b24c70fbaccbd3993f022042564d49dc81f87ffcbb9761b57ef81d37593
5
5
  SHA512:
6
- metadata.gz: 338f2df8729a2ad99198303b0f9e9820901fdf1fb63fa21bfc8b14569fd212bcac7ad89e1a0965015604664ae86b227cc01d0de6f486bec6c955159e10867f40
7
- data.tar.gz: 32b2dfd1edb077700db056aea8607e074f2f373330f21c59fa6350f4f92879c81ce0ed73723de11b02cea81cf834ba00ad30bb507963a1be881ea256f287aa19
6
+ metadata.gz: 23fe3b32747285c645c7d2a6e0cf42684a3fc175bdc05df9b69353801a87d145bcf55a5eed40af789737ca1b3697c2b6a0cd36ea64f41a5eb4d5cfeac6eb6ae0
7
+ data.tar.gz: da31bffc608e4e52526df99b2a9add2e56c3e3d4c943dad31a050656f80db0ad4da934dbd6a653e3511687ab97382d2beedcdab145dbafc7d34c8f96f7cd2d7c
@@ -21,7 +21,7 @@ module EducodeSales
21
21
  @sale_plans = OperationPlan.where(staff_id: @current_admin.id)
22
22
  when '区域'
23
23
  staff_ids = Staff.joins(user: [user_extension: [department: :school]]).where("schools.province in (?)", @current_admin.areas.pluck(:name)).pluck(:id)
24
- @sale_plans = OperationPlan.where("staff_id in ?", staff_ids)
24
+ @sale_plans = OperationPlan.where("staff_id in (?)", staff_ids)
25
25
  else
26
26
  @sale_plans = OperationPlan
27
27
  end
@@ -18,7 +18,7 @@ module EducodeSales
18
18
  @sale_reports = OperationReport.where(staff_id: @current_admin.id)
19
19
  when '区域'
20
20
  staff_ids = Staff.joins(user: [user_extension: [department: :school]]).where("schools.province in (?)", @current_admin.areas.pluck(:name)).pluck(:id)
21
- @sale_reports = OperationReport.where("staff_id in ?", staff_ids)
21
+ @sale_reports = OperationReport.where("staff_id in (?)", staff_ids)
22
22
  else
23
23
  @sale_reports = OperationReport
24
24
  end
@@ -21,8 +21,8 @@ module EducodeSales
21
21
  when '自己'
22
22
  @sale_plans = SalePlan.where(staff_id: @current_admin.id)
23
23
  when '区域'
24
- staff_ids = Staff.joins(user: [user_extension: [department: :school]].where("schools.province in (?)", @current_admin.areas.pluck(:name)).pluck(:id)
25
- @sale_plans = SalePlan.where("staff_id in ?", staff_ids)
24
+ staff_ids = Staff.joins(user: [user_extension: [department: :school]]).where("schools.province in (?)", @current_admin.areas.pluck(:name)).pluck(:id)
25
+ @sale_plans = SalePlan.where("staff_id in (?)", staff_ids)
26
26
  else
27
27
  @sale_plans = SalePlan
28
28
  end
@@ -51,7 +51,7 @@ module EducodeSales
51
51
  @sale_reports = SaleReport.where(staff_id: @current_admin.id)
52
52
  when '区域'
53
53
  staff_ids = Staff.joins(user: [user_extension: [department: :school]]).where("schools.province in (?)", @current_admin.areas.pluck(:name)).pluck(:id)
54
- @sale_reports = SaleReport.where("staff_id in ?", staff_ids)
54
+ @sale_reports = SaleReport.where("staff_id in (?)", staff_ids)
55
55
  else
56
56
  @sale_reports = SaleReport
57
57
  end
@@ -1,3 +1,3 @@
1
1
  module EducodeSales
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.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: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - anke1460