diff --git a/app/controllers/borutus/reports_controller.rb b/app/controllers/borutus/reports_controller.rb index c11ed20..a82cb75 100644 --- a/app/controllers/borutus/reports_controller.rb +++ b/app/controllers/borutus/reports_controller.rb @@ -12,7 +12,7 @@ class ReportsController < ::Borutus::ApplicationController # GET /reports/balance_sheet def balance_sheet first_entry = Borutus::Entry.order('date ASC').first - @from_date = first_entry ? first_entry.date: Date.today + @from_date = first_entry ? first_entry.date.to_date: Date.today @to_date = params[:date] ? Date.parse(params[:date]) : Date.today @assets = Borutus::Asset.all @liabilities = Borutus::Liability.all