Browse Source

Add tenancy for bulk upload

remotes/origin/bulk-upload-errors-integration
Kat 3 years ago
parent
commit
c70e0f220b
  1. 2
      app/services/bulk_upload/lettings/row_parser.rb
  2. 3
      spec/services/bulk_upload/lettings/row_parser_spec.rb

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

@ -228,6 +228,7 @@ private
beds: %i[field_101], beds: %i[field_101],
joint: %i[field_133], joint: %i[field_133],
startertenancy: %i[field_8], startertenancy: %i[field_8],
tenancy: %i[field_9],
} }
end end
@ -297,6 +298,7 @@ private
attributes["beds"] = field_101 attributes["beds"] = field_101
attributes["joint"] = field_133 attributes["joint"] = field_133
attributes["startertenancy"] = field_8 attributes["startertenancy"] = field_8
attributes["tenancy"] = field_9
attributes attributes
end end

3
spec/services/bulk_upload/lettings/row_parser_spec.rb

@ -66,7 +66,8 @@ RSpec.describe BulkUpload::Lettings::RowParser do
field_104: "1", field_104: "1",
field_101: "1", field_101: "1",
field_133: "1", field_133: "1",
field_8: "1" field_8: "1",
field_9: "2"
} }
end end

Loading…
Cancel
Save