|
|
|
@ -760,7 +760,7 @@ private |
|
|
|
stairbought: %i[field_87], |
|
|
|
stairbought: %i[field_87], |
|
|
|
stairowned: %i[field_88], |
|
|
|
stairowned: %i[field_88], |
|
|
|
socprevten: %i[field_100], |
|
|
|
socprevten: %i[field_100], |
|
|
|
mortgageused: %i[field_103 field_117 field_126], |
|
|
|
mortgageused: [mortgageused_field], |
|
|
|
|
|
|
|
|
|
|
|
uprn: %i[field_22], |
|
|
|
uprn: %i[field_22], |
|
|
|
address_line1: %i[field_23], |
|
|
|
address_line1: %i[field_23], |
|
|
|
@ -1116,6 +1116,12 @@ private |
|
|
|
return field_126 if outright_sale? |
|
|
|
return field_126 if outright_sale? |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def mortgageused_field |
|
|
|
|
|
|
|
return :field_103 if shared_ownership? |
|
|
|
|
|
|
|
return :field_117 if discounted_ownership? |
|
|
|
|
|
|
|
return :field_126 if outright_sale? |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def owning_organisation |
|
|
|
def owning_organisation |
|
|
|
@owning_organisation ||= Organisation.find_by_id_on_multiple_fields(field_1) |
|
|
|
@owning_organisation ||= Organisation.find_by_id_on_multiple_fields(field_1) |
|
|
|
end |
|
|
|
end |
|
|
|
|