Browse Source

Add beds to bulk upload

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

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

@ -225,6 +225,7 @@ private
unittype_gn: %i[field_102], unittype_gn: %i[field_102],
builtype: %i[field_103], builtype: %i[field_103],
wchair: %i[field_104], wchair: %i[field_104],
beds: %i[field_101],
} }
end end
@ -291,6 +292,7 @@ private
attributes["unittype_gn"] = field_102 attributes["unittype_gn"] = field_102
attributes["builtype"] = field_103 attributes["builtype"] = field_103
attributes["wchair"] = field_104 attributes["wchair"] = field_104
attributes["beds"] = field_101
attributes attributes
end end

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

@ -64,6 +64,7 @@ RSpec.describe BulkUpload::Lettings::RowParser do
field_102: "2", field_102: "2",
field_103: "1", field_103: "1",
field_104: "1", field_104: "1",
field_101: "1",
} }
end end

Loading…
Cancel
Save