|
|
@ -46,6 +46,8 @@ module DerivedVariables::LettingsLogVariables |
|
|
|
self.referral = 1 |
|
|
|
self.referral = 1 |
|
|
|
self.waityear = 2 |
|
|
|
self.waityear = 2 |
|
|
|
self.offered = 0 |
|
|
|
self.offered = 0 |
|
|
|
|
|
|
|
self.voiddate = startdate |
|
|
|
|
|
|
|
self.first_time_property_let_as_social_housing = 0 |
|
|
|
if is_general_needs? |
|
|
|
if is_general_needs? |
|
|
|
# fixed term |
|
|
|
# fixed term |
|
|
|
self.prevten = 32 if managing_organisation&.provider_type == "PRP" |
|
|
|
self.prevten = 32 if managing_organisation&.provider_type == "PRP" |
|
|
@ -61,7 +63,6 @@ module DerivedVariables::LettingsLogVariables |
|
|
|
if is_supported_housing? && location |
|
|
|
if is_supported_housing? && location |
|
|
|
self.wchair = location.mobility_type_before_type_cast == "W" ? 1 : 2 |
|
|
|
self.wchair = location.mobility_type_before_type_cast == "W" ? 1 : 2 |
|
|
|
end |
|
|
|
end |
|
|
|
self.voiddate = startdate if is_renewal? |
|
|
|
|
|
|
|
self.vacdays = property_vacant_days |
|
|
|
self.vacdays = property_vacant_days |
|
|
|
|
|
|
|
|
|
|
|
set_housingneeds_fields if housingneeds? |
|
|
|
set_housingneeds_fields if housingneeds? |
|
|
|