Browse Source

Check if economic status is answered

pull/1369/head
Kat 3 years ago
parent
commit
e94bf97058
  1. 3
      app/services/imports/sales_logs_import_service.rb

3
app/services/imports/sales_logs_import_service.rb

@ -422,7 +422,8 @@ module Imports
age = string_or_nil(xml_doc, "P#{person_index}Age") age = string_or_nil(xml_doc, "P#{person_index}Age")
gender = string_or_nil(xml_doc, "P#{person_index}Sex") gender = string_or_nil(xml_doc, "P#{person_index}Sex")
relationship = string_or_nil(xml_doc, "P#{person_index}Rel") relationship = string_or_nil(xml_doc, "P#{person_index}Rel")
if gender.present? || age.present? || relationship.present? economic_status = string_or_nil(xml_doc, "P#{person_index}Eco")
if gender.present? || age.present? || relationship.present? || economic_status.present?
highest_person_index_with_details = person_index highest_person_index_with_details = person_index
end end
end end

Loading…
Cancel
Save