Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
68825e6
update spree-core
Apr 22, 2015
a25dbcc
Update for Spree 3
Jun 30, 2015
4c12cba
Clean up routes and use correct url helper in daily details
Jul 10, 2015
6e3404c
Update daily details template
Jul 21, 2015
94b0989
Unscope variants in AdvancedReport#profit
Oct 15, 2015
effd232
Fix GeoRevenue template so that search works
Oct 15, 2015
ece6391
Add order detail report
Oct 24, 2015
9698ffc
add taxes & adjustments; correct adjustments
Oct 27, 2015
70132e3
Clean up Date Range form
Nov 5, 2015
c01e9b0
Add shipments to order details report
Nov 10, 2015
ed4f24b
Alternately shade orders in Order Details report for better readability
Nov 10, 2015
d8b3518
Speed up rendering of order details report
Dec 28, 2015
c731c94
Handle undefined method 'name' on selected shipping method
Aug 16, 2016
807156c
updated gemspec
saun0063 Sep 16, 2016
817c4c5
added support for account subscription reporting
saun0063 Oct 4, 2016
c42e9b1
add google jsapi over https
saun0063 Oct 4, 2016
bfca7e2
add google jsapi over https
saun0063 Oct 4, 2016
45a43bc
add google jsapi over https
saun0063 Oct 4, 2016
09a79f6
updated ruport gem spec
saun0063 Apr 20, 2017
40365f8
dont require ruport
saun0063 Apr 20, 2017
b8b5d48
ruuuuuuuuporttttgit add -A .
saun0063 Apr 20, 2017
ced47e9
ruuuuuuuuporttttgit add -A .
saun0063 Apr 20, 2017
8d72aef
fun
saun0063 Apr 20, 2017
3704f75
fun
saun0063 Apr 20, 2017
3302305
move ruport class eval fun to an initializer
saun0063 Apr 20, 2017
05bcc8d
move ruport class eval fun to an initializer
saun0063 Apr 20, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
gem 'ruport', :git => 'git://github.com/ChrisLusted/ruport.git', :branch => 'ruby-19-compat'
source 'https://rubygems.org'
gem 'ruport','~> 1.6.3'
gem 'ruport-util'
gem 'spree_account_subscription', github: 'cehdeti/spree_account_subscription', branch:'master'
240 changes: 240 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
GIT
remote: git://github.com/cehdeti/spree_account_subscription.git
revision: b883e4bce46f92530d72381516d0400af8f86f3e
branch: master
specs:
spree_account_subscription (0.1)
has_secure_token
spree_core (~> 3.1.0.rc3)

GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.8)
actionpack (= 4.2.8)
actionview (= 4.2.8)
activejob (= 4.2.8)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.8)
actionview (= 4.2.8)
activesupport (= 4.2.8)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.8)
activesupport (= 4.2.8)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (4.2.8)
activesupport (= 4.2.8)
globalid (>= 0.3.0)
activemerchant (1.64.0)
activesupport (>= 3.2.14, < 5.1)
builder (>= 2.1.2, < 4.0.0)
i18n (>= 0.6.9)
nokogiri (~> 1.4)
activemodel (4.2.8)
activesupport (= 4.2.8)
builder (~> 3.1)
activerecord (4.2.8)
activemodel (= 4.2.8)
activesupport (= 4.2.8)
arel (~> 6.0)
activesupport (4.2.8)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
acts_as_list (0.7.2)
activerecord (>= 3.0)
addressable (2.5.1)
public_suffix (~> 2.0, >= 2.0.2)
arel (6.0.4)
awesome_nested_set (3.0.3)
activerecord (>= 4.0.0, < 5)
builder (3.2.3)
camertron-eprun (1.1.1)
cancancan (1.10.1)
carmen (1.0.2)
activesupport (>= 3.0.0)
cldr-plurals-runtime-rb (1.0.1)
climate_control (0.1.0)
cocaine (0.5.8)
climate_control (>= 0.0.3, < 1.0)
color (1.8)
colorize (0.8.1)
concurrent-ruby (1.0.5)
css_parser (1.5.0)
addressable
deface (1.0.2)
colorize (>= 0.5.8)
nokogiri (~> 1.6.0)
polyglot
rails (>= 3.1)
erubis (2.7.0)
fastercsv (1.5.5)
ffaker (2.2.0)
font-awesome-rails (4.7.0.1)
railties (>= 3.2, < 5.1)
friendly_id (5.1.0)
activerecord (>= 4.0.0)
globalid (0.4.0)
activesupport (>= 4.2.0)
has_secure_token (1.0.0)
activerecord (>= 3.0)
highline (1.6.21)
htmlentities (4.3.4)
i18n (0.8.1)
kaminari (0.17.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.4)
mime-types (>= 1.16, < 4)
mailfactory (1.4.0)
mime-types (>= 1.13.1)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mimemagic (0.3.0)
mini_portile2 (2.1.0)
minitest (5.10.1)
monetize (1.6.0)
money (~> 6.8)
money (6.8.4)
i18n (>= 0.6.4, < 0.9)
sixarm_ruby_unaccent (>= 1.1.1, < 2)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
paperclip (4.3.7)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
cocaine (~> 0.5.5)
mime-types
mimemagic (= 0.3.0)
paranoia (2.1.5)
activerecord (~> 4.0)
pdf-writer (1.1.8)
color (>= 1.4.0)
transaction-simple (~> 1.3)
polyamorous (1.3.1)
activerecord (>= 3.0)
polyglot (0.3.5)
premailer (1.10.3)
addressable
css_parser (>= 1.4.10)
htmlentities (>= 4.0.0)
premailer-rails (1.9.5)
actionmailer (>= 3, < 6)
premailer (~> 1.7, >= 1.7.9)
public_suffix (2.0.5)
rack (1.6.5)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.8)
actionmailer (= 4.2.8)
actionpack (= 4.2.8)
actionview (= 4.2.8)
activejob (= 4.2.8)
activemodel (= 4.2.8)
activerecord (= 4.2.8)
activesupport (= 4.2.8)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.8)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.8)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.8)
actionpack (= 4.2.8)
activesupport (= 4.2.8)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.0.0)
ransack (1.4.1)
actionpack (>= 3.0)
activerecord (>= 3.0)
activesupport (>= 3.0)
i18n
polyamorous (~> 1.1)
responders (2.3.0)
railties (>= 4.2.0, < 5.1)
rubyzip (1.2.1)
ruport (1.6.3)
fastercsv
pdf-writer (= 1.1.8)
ruport-util (0.14.0)
mailfactory (>= 1.2.3)
rubyzip (>= 0.9.1)
ruport (>= 1.6.0)
sixarm_ruby_unaccent (1.1.1)
spree_core (3.1.5)
activemerchant (~> 1.59)
acts_as_list (= 0.7.2)
awesome_nested_set (~> 3.0.1)
cancancan (~> 1.10.1)
carmen (~> 1.0.0)
deface (~> 1.0.0)
ffaker (~> 2.2.0)
font-awesome-rails (~> 4.0)
friendly_id (~> 5.1.0)
highline (~> 1.6.18)
kaminari (~> 0.17)
monetize (~> 1.1)
paperclip (~> 4.3.0)
paranoia (~> 2.1.0)
premailer-rails
rails (~> 4.2.5)
ransack (~> 1.4.1)
responders
sprockets-rails
state_machines-activerecord (~> 0.2)
stringex
truncate_html (~> 0.9.3)
twitter_cldr (~> 3.0)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
state_machines (0.4.0)
state_machines-activemodel (0.4.0)
activemodel (>= 4.1, < 5.1)
state_machines (>= 0.4.0)
state_machines-activerecord (0.4.0)
activerecord (>= 4.1, < 5.1)
state_machines-activemodel (>= 0.3.0)
stringex (2.7.1)
thor (0.19.4)
thread_safe (0.3.6)
transaction-simple (1.4.0.2)
truncate_html (0.9.3)
twitter_cldr (3.6.0)
camertron-eprun
cldr-plurals-runtime-rb (~> 1.0)
tzinfo
tzinfo (1.2.3)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
ruport (~> 1.6.3)
ruport-util
spree_account_subscription!

BUNDLED WITH
1.14.6
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ def index
@top_customers_report = Spree::AdvancedReport::TopReport::TopCustomers.new({ :search => {} }, 5)
@top_customers_report.ruportdata.remove_column("Units")

@subscriptions = Spree::AccountSubscription.all
@subscription_seats = Spree::SubscriptionSeat.all

puts "ADVANCED REPORT!!!!!"

# From overview_dashboard, Cleanup eventually
orders = Spree::Order.find(:all, :order => "completed_at DESC", :limit => 10, :include => :line_items, :conditions => "completed_at is not null")
@last_orders = orders.inject([]) { |arr, o| arr << [o.bill_address.firstname, o.line_items.sum(:quantity), o.total, o.number]; arr }
Expand Down
Loading