Browse Source

add wchair to bulk upload

remotes/origin/bulk-upload-errors-integration
Kat 3 years ago
parent
commit
f4bc2e8609
  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

@ -224,6 +224,7 @@ private
startdate: %i[field_98 field_97 field_96], startdate: %i[field_98 field_97 field_96],
unittype_gn: %i[field_102], unittype_gn: %i[field_102],
builtype: %i[field_103], builtype: %i[field_103],
wchair: %i[field_104],
} }
end end
@ -289,6 +290,7 @@ private
attributes["startdate"] = startdate attributes["startdate"] = startdate
attributes["unittype_gn"] = field_102 attributes["unittype_gn"] = field_102
attributes["builtype"] = field_103 attributes["builtype"] = field_103
attributes["wchair"] = field_104
attributes attributes
end end

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

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

Loading…
Cancel
Save