Browse Source

Add startertenancy to the bulk upload

pull/1148/head
Kat 3 years ago committed by Phil Lee
parent
commit
fc225279f5
  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

@ -227,6 +227,7 @@ private
wchair: %i[field_104], wchair: %i[field_104],
beds: %i[field_101], beds: %i[field_101],
joint: %i[field_133], joint: %i[field_133],
startertenancy: %i[field_8],
} }
end end
@ -295,6 +296,7 @@ private
attributes["wchair"] = field_104 attributes["wchair"] = field_104
attributes["beds"] = field_101 attributes["beds"] = field_101
attributes["joint"] = field_133 attributes["joint"] = field_133
attributes["startertenancy"] = field_8
attributes attributes
end end

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

@ -66,6 +66,7 @@ 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"
} }
end end

Loading…
Cancel
Save