|
|
|
@ -228,7 +228,7 @@ class LettingsLog < Log |
|
|
|
return super unless location |
|
|
|
return super unless location |
|
|
|
return super if form.start_year_2026_or_later? && super |
|
|
|
return super if form.start_year_2026_or_later? && super |
|
|
|
|
|
|
|
|
|
|
|
location_derived_la |
|
|
|
location.linked_local_authorities.active(form.start_date).first&.code || location.location_code |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def postcode_full |
|
|
|
def postcode_full |
|
|
|
@ -849,12 +849,6 @@ class LettingsLog < Log |
|
|
|
|
|
|
|
|
|
|
|
private |
|
|
|
private |
|
|
|
|
|
|
|
|
|
|
|
def location_derived_la |
|
|
|
|
|
|
|
return unless location |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location.linked_local_authorities.active(form.start_date).first&.code || location.location_code |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def reset_invalid_unresolved_log_fields! |
|
|
|
def reset_invalid_unresolved_log_fields! |
|
|
|
return unless unresolved? |
|
|
|
return unless unresolved? |
|
|
|
|
|
|
|
|
|
|
|
|