Skip to content

Commit

Permalink
Followup report: don't include refugees with citizenship_at before th…
Browse files Browse the repository at this point in the history
…e selected report year
  • Loading branch information
martent committed Apr 15, 2019
1 parent f6ce8e7 commit 7e49564
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/reports/economy_followup_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ def refugees
)
.where('registered <= ?', Date.new(@year).end_of_year)
.where('not deregistered < ? or deregistered is ?', Date.new(@year).beginning_of_year, nil)
.where('not citizenship_at < ? or citizenship_at is ?', Date.new(@year).beginning_of_year, nil)
end
end

0 comments on commit 7e49564

Please sign in to comment.