effective_orders 6.1.5 → 6.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/admin/order_reports_controller.rb +8 -8
- data/app/datatables/admin/report_payment_providers_datatable.rb +3 -8
- data/app/datatables/admin/report_transactions_datatable.rb +3 -10
- data/app/datatables/admin/report_transactions_grouped_by_name_datatable.rb +3 -8
- data/app/datatables/admin/report_transactions_grouped_by_qb_name_datatable.rb +1 -6
- data/config/locales/effective_orders.en.yml +10 -0
- data/lib/effective_orders/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee5eb2878e3fa8291b4ea432ca80a7e52e2961f52b9d63ff235350922cc4388e
|
4
|
+
data.tar.gz: 27a85cedfbdb24ca8d6de87fac7655127960d320d5f09da77818b20fe1d9e29e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dcb53a3bcb13831db8830265278e922129e9386c58050f337fdee2aefdd39fd551400b77698923141c401157ec2cc8f0a5718ec6f93f522e296eae809c953c6
|
7
|
+
data.tar.gz: 5118ee092b13b7d4de8a19e78662607e798d0c5c819fe5795a1db30c130acc37e9891ccb74af027d5a5461c782f5b795603f522bb9deac5aa29061fa5e040a98
|
@@ -6,37 +6,37 @@ module Admin
|
|
6
6
|
include Effective::CrudController
|
7
7
|
|
8
8
|
def transactions
|
9
|
-
@page_title = 'Revenue: Individual Transactions'
|
10
9
|
@datatable = Admin::ReportTransactionsDatatable.new
|
10
|
+
@page_title = @datatable.datatable_name
|
11
11
|
|
12
|
-
authorize! :index,
|
12
|
+
authorize! :index, @datatable
|
13
13
|
|
14
14
|
render 'index'
|
15
15
|
end
|
16
16
|
|
17
17
|
def transactions_grouped_by_name
|
18
|
-
@page_title = 'Revenue: Transactions Grouped By Name'
|
19
18
|
@datatable = Admin::ReportTransactionsGroupedByNameDatatable.new
|
19
|
+
@page_title = @datatable.datatable_name
|
20
20
|
|
21
|
-
authorize! :index,
|
21
|
+
authorize! :index, @datatable
|
22
22
|
|
23
23
|
render 'index'
|
24
24
|
end
|
25
25
|
|
26
26
|
def transactions_grouped_by_qb_name
|
27
|
-
@page_title = 'Revenue: Transactions Grouped By Quickbooks Name'
|
28
27
|
@datatable = Admin::ReportTransactionsGroupedByQbNameDatatable.new
|
28
|
+
@page_title = @datatable.datatable_name
|
29
29
|
|
30
|
-
authorize! :index,
|
30
|
+
authorize! :index, @datatable
|
31
31
|
|
32
32
|
render 'index'
|
33
33
|
end
|
34
34
|
|
35
35
|
def payment_providers
|
36
|
-
@page_title = 'Revenue: Payment Providers'
|
37
36
|
@datatable = Admin::ReportPaymentProvidersDatatable.new
|
37
|
+
@page_title = @datatable.datatable_name
|
38
38
|
|
39
|
-
authorize! :index,
|
39
|
+
authorize! :index, @datatable
|
40
40
|
|
41
41
|
render 'index'
|
42
42
|
end
|
@@ -3,8 +3,7 @@
|
|
3
3
|
module Admin
|
4
4
|
class ReportPaymentProvidersDatatable < Effective::Datatable
|
5
5
|
filters do
|
6
|
-
|
7
|
-
filter :end_date, nil, as: :date
|
6
|
+
filter_date_range :current_month
|
8
7
|
end
|
9
8
|
|
10
9
|
datatable do
|
@@ -16,11 +15,11 @@ module Admin
|
|
16
15
|
col :returns, as: :price
|
17
16
|
col :total, as: :price
|
18
17
|
|
19
|
-
col :
|
18
|
+
col :filtered_start_date, as: :date, search: false, sort: false, visible: false do
|
20
19
|
date_range.begin&.strftime('%F')
|
21
20
|
end
|
22
21
|
|
23
|
-
col :
|
22
|
+
col :filtered_end_date, as: :date, search: false, sort: false, visible: false do
|
24
23
|
date_range.end&.strftime('%F')
|
25
24
|
end
|
26
25
|
|
@@ -52,9 +51,5 @@ module Admin
|
|
52
51
|
@payment_providers ||= EffectiveOrders.payment_providers - ['free', 'pretend']
|
53
52
|
end
|
54
53
|
|
55
|
-
def date_range
|
56
|
-
@date_range ||= (filters[:start_date].presence)..(filters[:end_date].presence)
|
57
|
-
end
|
58
|
-
|
59
54
|
end
|
60
55
|
end
|
@@ -2,10 +2,8 @@
|
|
2
2
|
|
3
3
|
module Admin
|
4
4
|
class ReportTransactionsDatatable < Effective::Datatable
|
5
|
-
|
6
5
|
filters do
|
7
|
-
|
8
|
-
filter :end_date, nil, as: :date
|
6
|
+
filter_date_range :current_month
|
9
7
|
end
|
10
8
|
|
11
9
|
datatable do
|
@@ -35,11 +33,11 @@ module Admin
|
|
35
33
|
|
36
34
|
col :total, as: :price
|
37
35
|
|
38
|
-
col :
|
36
|
+
col :filtered_start_date, as: :date, search: false, sort: false, visible: false do
|
39
37
|
date_range.begin&.strftime('%F')
|
40
38
|
end
|
41
39
|
|
42
|
-
col :
|
40
|
+
col :filtered_end_date, as: :date, search: false, sort: false, visible: false do
|
43
41
|
date_range.end&.strftime('%F')
|
44
42
|
end
|
45
43
|
|
@@ -54,10 +52,5 @@ module Admin
|
|
54
52
|
.where('total != 0')
|
55
53
|
.includes(:user, [order_items: :purchasable])
|
56
54
|
end
|
57
|
-
|
58
|
-
def date_range
|
59
|
-
@date_range ||= (filters[:start_date].presence)..(filters[:end_date].presence)
|
60
|
-
end
|
61
|
-
|
62
55
|
end
|
63
56
|
end
|
@@ -3,8 +3,7 @@
|
|
3
3
|
module Admin
|
4
4
|
class ReportTransactionsGroupedByNameDatatable < Effective::Datatable
|
5
5
|
filters do
|
6
|
-
|
7
|
-
filter :end_date, nil, as: :date
|
6
|
+
filter_date_range :current_month
|
8
7
|
end
|
9
8
|
|
10
9
|
datatable do
|
@@ -24,11 +23,11 @@ module Admin
|
|
24
23
|
col :orders
|
25
24
|
col :users
|
26
25
|
|
27
|
-
col :
|
26
|
+
col :filtered_start_date, as: :date, search: false, sort: false, visible: false do
|
28
27
|
date_range.begin&.strftime('%F')
|
29
28
|
end
|
30
29
|
|
31
|
-
col :
|
30
|
+
col :filtered_end_date, as: :date, search: false, sort: false, visible: false do
|
32
31
|
date_range.end&.strftime('%F')
|
33
32
|
end
|
34
33
|
|
@@ -70,9 +69,5 @@ module Admin
|
|
70
69
|
@payment_providers ||= EffectiveOrders.payment_providers - ['free', 'pretend']
|
71
70
|
end
|
72
71
|
|
73
|
-
def date_range
|
74
|
-
@date_range ||= (filters[:start_date].presence)..(filters[:end_date].presence)
|
75
|
-
end
|
76
|
-
|
77
72
|
end
|
78
73
|
end
|
@@ -3,8 +3,7 @@
|
|
3
3
|
module Admin
|
4
4
|
class ReportTransactionsGroupedByQbNameDatatable < Effective::Datatable
|
5
5
|
filters do
|
6
|
-
|
7
|
-
filter :end_date, nil, as: :date
|
6
|
+
filter_date_range :current_month
|
8
7
|
end
|
9
8
|
|
10
9
|
datatable do
|
@@ -70,9 +69,5 @@ module Admin
|
|
70
69
|
@payment_providers ||= EffectiveOrders.payment_providers - ['free', 'pretend']
|
71
70
|
end
|
72
71
|
|
73
|
-
def date_range
|
74
|
-
@date_range ||= (filters[:start_date].presence)..(filters[:end_date].presence)
|
75
|
-
end
|
76
|
-
|
77
72
|
end
|
78
73
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
en:
|
2
|
+
effective_orders:
|
3
|
+
name: 'Effective Orders'
|
4
|
+
acronym: 'Finance'
|
5
|
+
|
6
|
+
datatables:
|
7
|
+
admin/report_transactions_datatable: 'Individual Transactions'
|
8
|
+
admin/report_transactions_grouped_by_name_datatable: 'Transactions Grouped By Name'
|
9
|
+
admin/report_transactions_grouped_by_qb_name_datatable: 'Transactions Grouped By Quickbooks Name'
|
10
|
+
admin/report_payment_providers_datatable: 'Payment Providers'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1
|
4
|
+
version: 6.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -315,6 +315,7 @@ files:
|
|
315
315
|
- app/views/effective/subscripter/_plan.html.haml
|
316
316
|
- app/views/layouts/effective_orders_mailer_layout.html.haml
|
317
317
|
- config/effective_orders.rb
|
318
|
+
- config/locales/effective_orders.en.yml
|
318
319
|
- config/routes.rb
|
319
320
|
- db/migrate/01_create_effective_orders.rb.erb
|
320
321
|
- lib/effective_orders.rb
|