|
|
@ -75,11 +75,9 @@ module DerivedVariables::SalesLogVariables |
|
|
|
self.nationality_all = nationality_all_group if nationality_uk_or_prefers_not_to_say? |
|
|
|
self.nationality_all = nationality_all_group if nationality_uk_or_prefers_not_to_say? |
|
|
|
self.nationality_all_buyer2 = nationality_all_buyer2_group if nationality2_uk_or_prefers_not_to_say? |
|
|
|
self.nationality_all_buyer2 = nationality_all_buyer2_group if nationality2_uk_or_prefers_not_to_say? |
|
|
|
|
|
|
|
|
|
|
|
if self.saledate_changed? |
|
|
|
if saledate_changed? && !LocalAuthority.active(saledate).where(code: la).exists? |
|
|
|
unless LocalAuthority.active(self.saledate).where(code: la).exists? |
|
|
|
|
|
|
|
self.la = nil |
|
|
|
self.la = nil |
|
|
|
self.is_la_inferred = false |
|
|
|
self.is_la_inferred = false |
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
set_encoded_derived_values!(DEPENDENCIES) |
|
|
|
set_encoded_derived_values!(DEPENDENCIES) |
|
|
|