Browse Source

Derive managing org

pull/674/head
baarkerlounger 3 years ago
parent
commit
c9f7c1b05b
  1. 1
      app/models/derived_variables/case_log_variables.rb

1
app/models/derived_variables/case_log_variables.rb

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

Loading…
Cancel
Save