Browse Source

reset ppcodenk if ppcode errors

pull/2994/head
Carolyn 1 month ago committed by carolynbarker
parent
commit
f292edd70e
  1. 1
      app/models/lettings_log.rb

1
app/models/lettings_log.rb

@ -649,6 +649,7 @@ class LettingsLog < Log
super
self.postcode_known = nil if errors.attribute_names.include? :postcode_full
self.ppcodenk = nil if errors.attribute_names.include? :ppostcode_full
if errors.of_kind?(:earnings, :under_hard_min)
self.incfreq = nil

Loading…
Cancel
Save