|
|
|
@ -78,6 +78,7 @@ class SalesLog < Log |
|
|
|
def dynamically_not_required |
|
|
|
def dynamically_not_required |
|
|
|
not_required = [] |
|
|
|
not_required = [] |
|
|
|
not_required << "proplen" if proplen_optional? |
|
|
|
not_required << "proplen" if proplen_optional? |
|
|
|
|
|
|
|
not_required << "mortlen" if mortlen_optional? |
|
|
|
|
|
|
|
|
|
|
|
not_required |= %w[address_line2 county postcode_full] if saledate && saledate.year >= 2023 |
|
|
|
not_required |= %w[address_line2 county postcode_full] if saledate && saledate.year >= 2023 |
|
|
|
|
|
|
|
|
|
|
|
@ -90,6 +91,12 @@ class SalesLog < Log |
|
|
|
collection_start_year < 2023 |
|
|
|
collection_start_year < 2023 |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def mortlen_optional? |
|
|
|
|
|
|
|
return false unless collection_start_year |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
collection_start_year < 2023 |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def not_started? |
|
|
|
def not_started? |
|
|
|
status == "not_started" |
|
|
|
status == "not_started" |
|
|
|
end |
|
|
|
end |
|
|
|
|