|
|
|
@ -184,7 +184,7 @@ class LettingsLog < Log |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def la |
|
|
|
def la |
|
|
|
if (!form.start_year_2026_or_later? && location) || (form.start_year_2026_or_later? && !super) |
|
|
|
if location && (!form.start_year_2026_or_later? || (form.start_year_2026_or_later? && !super)) |
|
|
|
location.linked_local_authorities.active(form.start_date).first&.code || location.location_code |
|
|
|
location.linked_local_authorities.active(form.start_date).first&.code || location.location_code |
|
|
|
else |
|
|
|
else |
|
|
|
super |
|
|
|
super |
|
|
|
@ -192,7 +192,7 @@ class LettingsLog < Log |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def postcode_full |
|
|
|
def postcode_full |
|
|
|
if (!form.start_year_2026_or_later? && location) || (form.start_year_2026_or_later? && !super) |
|
|
|
if location && (!form.start_year_2026_or_later? || (form.start_year_2026_or_later? && !super)) |
|
|
|
location.postcode |
|
|
|
location.postcode |
|
|
|
else |
|
|
|
else |
|
|
|
super |
|
|
|
super |
|
|
|
|