|
|
|
@ -82,10 +82,8 @@ module DerivedVariables::LettingsLogVariables |
|
|
|
self.prevten = 30 if owning_organisation&.provider_type == "LA" |
|
|
|
self.prevten = 30 if owning_organisation&.provider_type == "LA" |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
if form.start_year_after_2024? |
|
|
|
if form.start_year_after_2024? && is_bedsit? |
|
|
|
if is_bedsit? |
|
|
|
self.beds = 1 |
|
|
|
self.beds = 1 |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
child_under_16_constraints! |
|
|
|
child_under_16_constraints! |
|
|
|
@ -173,10 +171,8 @@ private |
|
|
|
self.wchair = nil |
|
|
|
self.wchair = nil |
|
|
|
self.location_id = nil |
|
|
|
self.location_id = nil |
|
|
|
end |
|
|
|
end |
|
|
|
if form.start_year_after_2024? |
|
|
|
if form.start_year_after_2024? && (unittype_gn_changed? && unittype_gn_was == 2) |
|
|
|
if unittype_gn_changed? && unittype_gn_was == 2 |
|
|
|
self.beds = nil |
|
|
|
self.beds = nil |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|