Class: Crm::Reports::ProfitLossController

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

Instance Method Summary collapse

Instance Method Details

#showObject



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

def show
  authorize! :read, LedgerCompanyAccount
  @report_command = ::Report::ProfitLoss::ProfitLossCommand.new(profit_loss_command_params)
  @result = @report_command.execute
  flash_report_command_errors
  respond_to do |format|
    format.html
    format.turbo_stream
  end
end