e9_crm 0.1.27 → 0.1.28

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.
@@ -58,9 +58,8 @@ class Campaign < ActiveRecord::Base
58
58
  SUM(IF(deals.status='won',deals.value,0)) total_value,
59
59
  AVG(IF(deals.status='won',deals.value,NULL)) average_value,
60
60
 
61
- SUM(costs.total) total_cost,
62
- SUM(costs.total) /
63
- SUM(IF(deals.status='won',1,0)) average_cost,
61
+ costs.total total_cost,
62
+ costs.total / SUM(IF(deals.status='won',1,0)) average_cost,
64
63
 
65
64
  IFNULL(rv.count, 0) repeat_visits,
66
65
  IFNULL(nv.count, 0) new_visits,
@@ -1,3 +1,3 @@
1
1
  module E9Crm
2
- VERSION = '0.1.27'
2
+ VERSION = '0.1.28'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: e9_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.27
4
+ version: 0.1.28
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-07 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: money
16
- requirement: &21696240 !ruby/object:Gem::Requirement
16
+ requirement: &10401800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *21696240
24
+ version_requirements: *10401800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: kramdown
27
- requirement: &21695620 !ruby/object:Gem::Requirement
27
+ requirement: &10401260 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0.13'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *21695620
35
+ version_requirements: *10401260
36
36
  description: ! "*NOTE his plugin requires the private e9_base CMS gem and WILL NOT
37
37
  WORK without it.*\n\nCRM Plugin for the e9 CMS\n=========================\n\nTo
38
38
  use, add as a gem and install by running:\n\n rails g e9_crm:install\n\nThen