Class: Crm::Reports::AccountingRecordsController
- Inherits:
-
CrmController
- Object
- CrmController
- Crm::Reports::AccountingRecordsController
- Includes:
- Controllers::ReportCommandFlashable
- Defined in:
- app/controllers/crm/reports/accounting_records_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/crm/reports/accounting_records_controller.rb', line 6 def show @report_command = ::Report::AccountingRecords::AccountingRecordsCommand.new(accounting_records_command_params) @result = @report_command.execute if @report_command.success? && @result.data.present? @pagy, @paginated_data = pagy(:offset, @result.data, limit: 50) end flash_report_command_errors respond_to do |format| format.html format.turbo_stream end end |