Class: Crm::Reports::LeadReportController

Inherits:
CrmController
  • Object
show all
Includes:
Controllers::ReportCommandFlashable
Defined in:
app/controllers/crm/reports/lead_report_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



6
7
8
9
10
11
12
13
14
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 6

def show
  authorize! :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_outObject



41
42
43
44
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 41

def tab_calls_in_out
  initialize_command_params
  render "tab_calls_in_out", layout: should_render_layout?
end

#tab_communicationsObject



46
47
48
49
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 46

def tab_communications
  initialize_command_params
  render "tab_communications", layout: should_render_layout?
end

#tab_customers_createdObject



16
17
18
19
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 16

def tab_customers_created
  initialize_command_params
  render "tab_customers_created", layout: should_render_layout?
end

#tab_opportunitiesObject



21
22
23
24
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 21

def tab_opportunities
  initialize_command_params
  render "tab_opportunities", layout: should_render_layout?
end

#tab_ordersObject



26
27
28
29
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 26

def tab_orders
  initialize_command_params
  render "tab_orders", layout: should_render_layout?
end

#tab_rooms_createdObject



36
37
38
39
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 36

def tab_rooms_created
  initialize_command_params
  render "tab_rooms_created", layout: should_render_layout?
end

#tab_servicesObject



31
32
33
34
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 31

def tab_services
  initialize_command_params
  render "tab_services", layout: should_render_layout?
end

#tab_smsObject



51
52
53
54
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 51

def tab_sms
  initialize_command_params
  render "tab_sms", layout: should_render_layout?
end

#tab_website_visitsObject



56
57
58
59
# File 'app/controllers/crm/reports/lead_report_controller.rb', line 56

def tab_website_visits
  initialize_command_params
  render "tab_website_visits", layout: should_render_layout?
end