Browse Source

add housingneeds to bulk upload

remotes/origin/bulk-upload-errors-integration
Phil Lee 3 years ago
parent
commit
27b8d82cd4
  1. 14
      app/services/bulk_upload/lettings/row_parser.rb

14
app/services/bulk_upload/lettings/row_parser.rb

@ -261,6 +261,8 @@ private
reservist: %i[field_46], reservist: %i[field_46],
preg_occ: %i[field_47], preg_occ: %i[field_47],
housingneeds: %i[field_47],
} }
end end
@ -364,9 +366,21 @@ private
attributes["preg_occ"] = field_47 attributes["preg_occ"] = field_47
attributes["housingneeds"] = housingneeds
attributes attributes
end end
def housingneeds
if field_59 == 1
1
elsif field_60 == 1
3
else
2
end
end
def ethnic_group_from_ethnic def ethnic_group_from_ethnic
return nil if field_43.blank? return nil if field_43.blank?

Loading…
Cancel
Save