Skip to content

Commit

Permalink
Fix: only include EKB in report 'uppbokning'
Browse files Browse the repository at this point in the history
  • Loading branch information
martent committed Oct 10, 2019
1 parent 9efe9a2 commit 587c2cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/reports/economy_uppbokning_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 587c2cf

Please sign in to comment.