Class: Crm::Reports::OpportunitiesVsLogisticsController
- Inherits:
-
CrmController
- Object
- CrmController
- Crm::Reports::OpportunitiesVsLogisticsController
- Includes:
- Controllers::ReportCommandFlashable
- Defined in:
- app/controllers/crm/reports/opportunities_vs_logistics_controller.rb
Overview
Controller: opportunities vs logistics.
Constant Summary collapse
- ITEMS_PER_PAGE =
Items per page.
25
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/crm/reports/opportunities_vs_logistics_controller.rb', line 11 def show @report_command = ::Report::OpportunitiesVsLogistics::OpportunitiesVsLogisticsCommand.new(opportunities_vs_logistics_command_params) @result = @report_command.execute @pagy, @paginated_data = pagy(:offset, @result.data_table, limit: ITEMS_PER_PAGE) if @report_command.success? && @result.data_table.present? flash_report_command_errors respond_to do |format| format.html format.turbo_stream end end |