|
|
|
@ -79,6 +79,7 @@ class SalesLog < Log |
|
|
|
not_required = [] |
|
|
|
not_required = [] |
|
|
|
not_required << "proplen" if proplen_optional? |
|
|
|
not_required << "proplen" if proplen_optional? |
|
|
|
not_required << "mortlen" if mortlen_optional? |
|
|
|
not_required << "mortlen" if mortlen_optional? |
|
|
|
|
|
|
|
not_required << "frombeds" if frombeds_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 |
|
|
|
|
|
|
|
|
|
|
|
@ -97,6 +98,12 @@ class SalesLog < Log |
|
|
|
collection_start_year < 2023 |
|
|
|
collection_start_year < 2023 |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def frombeds_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 |
|
|
|
|