|
|
|
|
@ -27,6 +27,7 @@ class SalesLog < Log
|
|
|
|
|
before_validation :recalculate_start_year!, if: :saledate_changed? |
|
|
|
|
before_validation :process_postcode_changes!, if: :postcode_full_changed? |
|
|
|
|
before_validation :process_previous_postcode_changes!, if: :ppostcode_full_changed? |
|
|
|
|
before_validation :reset_invalidated_dependent_fields! |
|
|
|
|
before_validation :reset_location_fields!, unless: :postcode_known? |
|
|
|
|
before_validation :reset_previous_location_fields!, unless: :previous_postcode_known? |
|
|
|
|
before_validation :set_derived_fields! |
|
|
|
|
|