Class: Crm::Reports::ChannelRevenueController
- Inherits:
-
CrmController
- Object
- CrmController
- Crm::Reports::ChannelRevenueController
- Defined in:
- app/controllers/crm/reports/channel_revenue_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/crm/reports/channel_revenue_controller.rb', line 3 def show :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 |