Class: Crm::Reports::LeadReportController
- Inherits:
-
CrmController
- Object
- CrmController
- Crm::Reports::LeadReportController
- Includes:
- Controllers::ReportCommandFlashable
- Defined in:
- app/controllers/crm/reports/lead_report_controller.rb
Overview
Controller: lead report.
Instance Method Summary collapse
- #show ⇒ Object
- #tab_calls_in_out ⇒ Object
- #tab_communications ⇒ Object
- #tab_customers_created ⇒ Object
- #tab_opportunities ⇒ Object
- #tab_orders ⇒ Object
- #tab_rooms_created ⇒ Object
- #tab_services ⇒ Object
- #tab_sms ⇒ Object
- #tab_website_visits ⇒ Object
Instance Method Details
#show ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 8 def show :read, LedgerCompanyAccount @report_command = ::Report::LeadReport::LeadReportCommand.new(lead_report_command_params) flash_report_command_errors respond_to do |format| format.html format.turbo_stream end end |
#tab_calls_in_out ⇒ Object
58 59 60 61 62 63 64 |
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 58 def tab_calls_in_out initialize_command_params respond_to do |format| format.html { render "tab_calls_in_out", layout: should_render_layout? } format.turbo_stream end end |
#tab_communications ⇒ Object
66 67 68 69 70 71 72 |
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 66 def tab_communications initialize_command_params respond_to do |format| format.html { render "tab_communications", layout: should_render_layout? } format.turbo_stream end end |
#tab_customers_created ⇒ Object
18 19 20 21 22 23 24 |
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 18 def tab_customers_created initialize_command_params respond_to do |format| format.html { render "tab_customers_created", layout: should_render_layout? } format.turbo_stream end end |
#tab_opportunities ⇒ Object
26 27 28 29 30 31 32 |
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 26 def tab_opportunities initialize_command_params respond_to do |format| format.html { render "tab_opportunities", layout: should_render_layout? } format.turbo_stream end end |
#tab_orders ⇒ Object
34 35 36 37 38 39 40 |
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 34 def tab_orders initialize_command_params respond_to do |format| format.html { render "tab_orders", layout: should_render_layout? } format.turbo_stream end end |
#tab_rooms_created ⇒ Object
50 51 52 53 54 55 56 |
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 50 def tab_rooms_created initialize_command_params respond_to do |format| format.html { render "tab_rooms_created", layout: should_render_layout? } format.turbo_stream end end |
#tab_services ⇒ Object
42 43 44 45 46 47 48 |
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 42 def tab_services initialize_command_params respond_to do |format| format.html { render "tab_services", layout: should_render_layout? } format.turbo_stream end end |
#tab_sms ⇒ Object
74 75 76 77 78 79 80 |
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 74 def tab_sms initialize_command_params respond_to do |format| format.html { render "tab_sms", layout: should_render_layout? } format.turbo_stream end end |
#tab_website_visits ⇒ Object
82 83 84 85 86 87 88 |
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 82 def tab_website_visits initialize_command_params respond_to do |format| format.html { render "tab_website_visits", layout: should_render_layout? } format.turbo_stream end end |