diff --git a/app/reports/economy_uppbokning_report.rb b/app/reports/economy_uppbokning_report.rb index 5d4402e..50d9d98 100644 --- a/app/reports/economy_uppbokning_report.rb +++ b/app/reports/economy_uppbokning_report.rb @@ -91,6 +91,7 @@ def people placements: [:legal_code, :placement_extra_costs, :family_and_emergency_home_costs, home: [:costs]] ) + .where(ekb: true) .where('placements.moved_in_at <= ?', @params[:to]) .where('placements.moved_out_at is ? or placements.moved_out_at >= ?', nil, @params[:from]) end