Browse Source

Bugfix provider_type on nil

CLDC-20-more-ac-fixes3
Jack S 2 years ago
parent
commit
260d8e4378
  1. 4
      app/models/derived_variables/lettings_log_variables.rb

4
app/models/derived_variables/lettings_log_variables.rb

@ -49,8 +49,8 @@ module DerivedVariables::LettingsLogVariables
self.waityear = 2
if is_general_needs?
# fixed term
self.prevten = 32 if managing_organisation.provider_type == "PRP"
self.prevten = 30 if managing_organisation.provider_type == "LA"
self.prevten = 32 if managing_organisation&.provider_type == "PRP"
self.prevten = 30 if managing_organisation&.provider_type == "LA"
end
end

Loading…
Cancel
Save