Browse Source

CLDC-4105: Ensure hhmemb is not >8 for validation

otherwise the send to ecstatn will fail

this can happen whilst running validation checks
CLDC-4105-account-for-temporary-hhmem-over-8
Samuel Young 1 day ago
parent
commit
ba96cbed85
  1. 2
      app/models/validations/soft_validations.rb

2
app/models/validations/soft_validations.rb

@ -288,6 +288,8 @@ private
end
def at_least_one_person_working_situation_is_illness?
return if hhmemb.present? && hhmemb > 8
person_count = hhmemb || 8
(1..person_count).any? { |n| public_send("ecstat#{n}") == 8 }

Loading…
Cancel
Save