|
|
|
@ -6,8 +6,9 @@ module DerivedVariables::CaseLogVariables
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def set_derived_fields! |
|
|
|
|
# TODO: Remove once we support supported housing logs |
|
|
|
|
# TODO: Remove once we support parent/child relationships |
|
|
|
|
self.managing_organisation_id ||= owning_organisation_id |
|
|
|
|
# TODO: Remove once we support supported housing logs |
|
|
|
|
self.needstype = 1 unless supported_housing_schemes_enabled? |
|
|
|
|
if rsnvac.present? |
|
|
|
|
self.newprop = has_first_let_vacancy_reason? ? 1 : 2 |
|
|
|
|