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 +4 -4
- data/app/controllers/educode_sales/operation_plans_controller.rb +1 -1
- data/app/controllers/educode_sales/operation_reports_controller.rb +1 -1
- data/app/controllers/educode_sales/plans_controller.rb +2 -2
- data/app/controllers/educode_sales/sale_reports_controller.rb +1 -1
- data/lib/educode_sales/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41790fb0313e3f22aff7bbd0046de7bd203e8523b72cfa22712cbf12f9cbb61d
|
4
|
+
data.tar.gz: 1bc23b24c70fbaccbd3993f022042564d49dc81f87ffcbb9761b57ef81d37593
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|