Browse Source

Refused is also valid

pull/895/head
baarkerlounger 3 years ago
parent
commit
ef2fd6d7b7
  1. 2
      app/services/imports/lettings_logs_import_service.rb

2
app/services/imports/lettings_logs_import_service.rb

@ -87,7 +87,7 @@ module Imports
attributes["details_known_#{index}"] = details_known(index, attributes)
# Trips validation
if attributes["age#{index}"].present? && attributes["age#{index}"] < 16 && attributes["relat#{index}"] != "C"
if attributes["age#{index}"].present? && attributes["age#{index}"] < 16 && attributes["relat#{index}"] != "C" && attributes["relat#{index}"] != "R"
attributes["age#{index}"] = nil
attributes["relat#{index}"] = nil
end

Loading…
Cancel
Save