Sha256: d39131f0ae27047a3d60c6c5f2f58d995b83c8219842ad37abaaa67005d4fb5b
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
module Admin class OrderReportsController < ApplicationController before_action(:authenticate_user!) if defined?(Devise) before_action { EffectiveResources.authorize!(self, :admin, :effective_orders) } include Effective::CrudController def transactions @page_title = 'Revenue: Individual Transactions' @datatable = Admin::ReportTransactionsDatatable.new authorize! :index, :report_transactions render 'index' end def transactions_grouped_by_name @page_title = 'Revenue: Transactions Grouped By Name' @datatable = Admin::ReportTransactionsGroupedByNameDatatable.new authorize! :index, :report_transactions_grouped_by_name render 'index' end def transactions_grouped_by_qb_name @page_title = 'Revenue: Transactions Grouped By Quickbooks Name' @datatable = Admin::ReportTransactionsGroupedByQbNameDatatable.new authorize! :index, :report_transactions_grouped_by_qb_name render 'index' end def payment_providers @page_title = 'Revenue: Payment Providers' @datatable = Admin::ReportPaymentProvidersDatatable.new authorize! :index, :report_payment_providers render 'index' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_orders-6.2.0 | app/controllers/admin/order_reports_controller.rb |
effective_orders-6.1.5 | app/controllers/admin/order_reports_controller.rb |