Browse Source

CLDC-4048: Add an exception for UPRN -> address matching for Sage Homes in 2024

they've been having issues with address changing on upload. addresses are changed on an UPRN lookup happening so this is disabled for them
CLDC-4048-add-sage-homes-address-exception
Samuel Young 2 months ago
parent
commit
cc6fffe7de
  1. 4
      app/models/form.rb
  2. 2
      app/models/lettings_log.rb

4
app/models/form.rb

@ -341,6 +341,10 @@ class Form
start_date && start_date.year >= 2024
end
def start_year_2024?
start_date && start_date.year == 2024
end
def start_year_2025_or_later?
start_date && start_date.year >= 2025
end

2
app/models/lettings_log.rb

@ -915,6 +915,8 @@ private
def should_process_uprn_change?
return unless uprn
return unless startdate
# Skip for Sage Homes for this year as they are having issues with address matching
return if owning_organisation.id == 334 && form.start_year_2024?
uprn_changed? || startdate_changed?
end

Loading…
Cancel
Save