|
|
@ -192,10 +192,13 @@ class CaseLog < ApplicationRecord |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def is_secure_tenancy? |
|
|
|
def is_secure_tenancy? |
|
|
|
|
|
|
|
return unless collection_start_year |
|
|
|
|
|
|
|
|
|
|
|
# 1: Secure (including flexible) |
|
|
|
# 1: Secure (including flexible) |
|
|
|
if collection_start_year < 2022 |
|
|
|
if collection_start_year < 2022 |
|
|
|
tenancy == 1 |
|
|
|
tenancy == 1 |
|
|
|
else |
|
|
|
else |
|
|
|
|
|
|
|
# 6: Secure - fixed term, 7: Secure - lifetime |
|
|
|
[6, 7].include?(tenancy) |
|
|
|
[6, 7].include?(tenancy) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|