@ -54,6 +54,19 @@ class CaseLogValidator < ActiveModel::Validator
record.errors.add:armed_forces_injured,"You must not answer the armed forces injury question if the tenant has not served in the armed forces or prefer not to say was chosen"
record.errors.add:armed_forces_injured,"You must not answer the armed forces injury question if the tenant has not served in the armed forces or prefer not to say was chosen"
end
end
end
end
EMPLOYED_STATUSES=["Full-time - 30 hours or more","Part-time - Less than 30 hours"].freeze
record.errors.add:net_income_uc_proportion,"income is from Universal Credit, state pensions or benefits cannot be All if the tenant or the partner works part or full time"
end
end
end
defvalidate_armed_forces_active_response(record)
defvalidate_armed_forces_active_response(record)
ifrecord.armed_forces=="Yes - a regular"&&record.armed_forces_active.blank?
ifrecord.armed_forces=="Yes - a regular"&&record.armed_forces_active.blank?
@ -71,6 +84,20 @@ class CaseLogValidator < ActiveModel::Validator