educode_sales 0.9.8 → 0.9.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d8bedbdcc700c3e37997808523860f75848a078352a86063239219a19992301
|
4
|
+
data.tar.gz: 0dd303bd7b2fc3ce8f24c3ec4300e31ef4aeec4f9a3a84f1d3b17854dcbbb20b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ef8a07852f16502421892cb9f7103e2ff428d85f2f1be25cedf1dfef984ba8953af1acddb9526b78b3d9336e4bc305124f1a0f7633173556b114eed3af89ca5
|
7
|
+
data.tar.gz: 384480cc86552819dbce83f34f4c24a28501e167c16e66625343e26c3611502a15408c3d135a0f379bdbd5197e9e48e3ad232410146429d23320058a64182a38
|
@@ -21,8 +21,8 @@ module EducodeSales
|
|
21
21
|
s_stage_ids = Common.where(clazz: '商机阶段', name: ['已签单', '已验收', '回款中', '服务中', '已结束']).pluck(:id)
|
22
22
|
@service_amount = Business.joins(:last_follow_up).where("educode_sales_follow_ups.clazz_id != ?", x).where("educode_sales_follow_ups.stage_id IN (?)", s_stage_ids).sum(:total_amount).round(2)
|
23
23
|
@actual_service_amount = Business.joins(:last_follow_up).where("educode_sales_follow_ups.clazz_id != ?", x).where("educode_sales_follow_ups.stage_id IN (?)", s_stage_ids).sum(:actual_amount).round(2)
|
24
|
-
|
25
|
-
@return_amount = total_return[0]['return_money']&.round(2) || 0
|
24
|
+
@return_amount = Business.joins(last_follow_up: :money_plans).where("educode_sales_follow_ups.clazz_id != ?", x).where.not("educode_sales_money_plans.clazz!= ?", 1).sum(:amount).round(2)
|
25
|
+
# @return_amount = total_return[0]['return_money']&.round(2) || 0
|
26
26
|
@receivable_amount = @goal_amount - @return_amount
|
27
27
|
|
28
28
|
a = Common.where(clazz: '商机类型', name: Common.find_by(extras: EducodeSales::Common::ATYPE)&.name).pluck(:id)
|
@@ -45,8 +45,8 @@ module EducodeSales
|
|
45
45
|
s_stage_ids = Common.where(clazz: '商机阶段', name: ['已签单', '已验收', '回款中', '服务中', '已结束']).pluck(:id)
|
46
46
|
@service_amount = Business.joins(:last_follow_up).where("educode_sales_follow_ups.clazz_id != ?", x).where("educode_sales_follow_ups.signed_date >= ? AND educode_sales_follow_ups.signed_date <= ? AND educode_sales_follow_ups.stage_id IN (?)", "#{@year}-01-01", "#{@year}-12-31", s_stage_ids).sum(:total_amount).round(2)
|
47
47
|
@actual_service_amount = Business.joins(:last_follow_up).where("educode_sales_follow_ups.clazz_id != ?", x).where("educode_sales_follow_ups.signed_date >= ? AND educode_sales_follow_ups.signed_date <= ? AND educode_sales_follow_ups.stage_id IN (?)", "#{@year}-01-01", "#{@year}-12-31", s_stage_ids).sum(:actual_amount).round(2)
|
48
|
-
|
49
|
-
@return_amount = total_return[0]['return_money']&.round(2) || 0
|
48
|
+
@return_amount = Business.joins(last_follow_up: :money_plans).where("educode_sales_follow_ups.clazz_id != ?", x).where.not("educode_sales_money_plans.clazz!= ?", 1).where("educode_sales_money_plans.date_at >= ? AND educode_sales_money_plans.date_at <= ? ", year_time, year_over_time).sum(:amount).round(2)
|
49
|
+
# @return_amount = total_return[0]['return_money']&.round(2) || 0
|
50
50
|
@receivable_amount = @goal_amount - @return_amount
|
51
51
|
|
52
52
|
a = Common.where(clazz: '商机类型', name: Common.find_by(extras: EducodeSales::Common::ATYPE)&.name).pluck(:id)
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: educode_sales
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- anke1460
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-09-22 00:00:00.000000000 Z
|
@@ -105,7 +105,6 @@ 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
|
109
108
|
- app/assets/images/educode_sales/loading-0.gif
|
110
109
|
- app/assets/images/educode_sales/loading-1.gif
|
111
110
|
- app/assets/images/educode_sales/loading-2.gif
|
@@ -474,6 +473,7 @@ files:
|
|
474
473
|
- db/migrate/20220523023609_update_assessment_month_column_to_assessment_settings.rb
|
475
474
|
- db/migrate/20220523101628_update_column_to_follow_ups.rb
|
476
475
|
- db/migrate/20220827130438_create_educode_sales_login_histories.rb
|
476
|
+
- db/migrate/20220920080302_add_column_number_to_educode_sales_businesses.rb
|
477
477
|
- db/migrate/20220921131116_add_change_clazz_to_follow_up.rb
|
478
478
|
- lib/educode_sales.rb
|
479
479
|
- lib/educode_sales/engine.rb
|
@@ -483,7 +483,7 @@ homepage: https://www.educoder.net
|
|
483
483
|
licenses:
|
484
484
|
- MIT
|
485
485
|
metadata: {}
|
486
|
-
post_install_message:
|
486
|
+
post_install_message:
|
487
487
|
rdoc_options: []
|
488
488
|
require_paths:
|
489
489
|
- lib
|
@@ -498,8 +498,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
498
498
|
- !ruby/object:Gem::Version
|
499
499
|
version: '0'
|
500
500
|
requirements: []
|
501
|
-
rubygems_version: 3.0.
|
502
|
-
signing_key:
|
501
|
+
rubygems_version: 3.0.0
|
502
|
+
signing_key:
|
503
503
|
specification_version: 4
|
504
504
|
summary: Summary of EducodeSales.
|
505
505
|
test_files: []
|
Binary file
|