Class: Crm::Reports::ChannelRevenueController

Inherits:
CrmController
  • Object
show all
Defined in:
app/controllers/crm/reports/channel_revenue_controller.rb

Overview

Controller: channel revenue.

Instance Method Summary collapse

Instance Method Details

#showObject



4
5
6
7
8
9
10
11
12
# File 'app/controllers/crm/reports/channel_revenue_controller.rb', line 4

def show
  authorize! :read, Order
  @report_command = ::Report::ChannelRevenue::Command.new(params[:command])
  @results = @report_command.execute
  respond_to do |format|
    format.html
    # format.csv { send_data @report_command.to_csv, filename: "call-statistics-#{Date.current}.csv" }
  end
end