Class: Admin::OrderReportsController

Inherits:
ApplicationController
  • Object
show all
Includes:
Effective::CrudController
Defined in:
app/controllers/admin/order_reports_controller.rb

Instance Method Summary collapse

Instance Method Details

#payment_providersObject



35
36
37
38
39
40
41
42
# File 'app/controllers/admin/order_reports_controller.rb', line 35

def payment_providers
  @datatable = Admin::ReportPaymentProvidersDatatable.new
  @page_title = @datatable.datatable_name

  authorize! :index, @datatable

  render 'index'
end

#transactionsObject



8
9
10
11
12
13
14
15
# File 'app/controllers/admin/order_reports_controller.rb', line 8

def transactions
  @datatable = Admin::ReportTransactionsDatatable.new
  @page_title = @datatable.datatable_name

  authorize! :index, @datatable

  render 'index'
end

#transactions_grouped_by_nameObject



17
18
19
20
21
22
23
24
# File 'app/controllers/admin/order_reports_controller.rb', line 17

def transactions_grouped_by_name
  @datatable = Admin::ReportTransactionsGroupedByNameDatatable.new
  @page_title = @datatable.datatable_name

  authorize! :index, @datatable

  render 'index'
end

#transactions_grouped_by_qb_nameObject



26
27
28
29
30
31
32
33
# File 'app/controllers/admin/order_reports_controller.rb', line 26

def transactions_grouped_by_qb_name
  @datatable = Admin::ReportTransactionsGroupedByQbNameDatatable.new
  @page_title = @datatable.datatable_name

  authorize! :index, @datatable

  render 'index'
end