8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'app/controllers/crm/reports/opportunities_vs_logistics_controller.rb', line 8
def show
@report_command = ::Report::OpportunitiesVsLogistics::OpportunitiesVsLogisticsCommand.new(opportunities_vs_logistics_command_params)
@result = @report_command.execute
if @report_command.success? && @result.data_table.present?
@pagy, @paginated_data = pagy(:offset, @result.data_table, limit: ITEMS_PER_PAGE)
end
flash_report_command_errors
respond_to do |format|
format.html
format.turbo_stream
end
end
|