Browse Source

Add declaration to the bulk upload

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

@ -229,6 +229,7 @@ private
joint: %i[field_133],
startertenancy: %i[field_8],
tenancy: %i[field_9],
declaration: %i[field_132],
}
end
@ -299,6 +300,7 @@ private
attributes["joint"] = field_133
attributes["startertenancy"] = field_8
attributes["tenancy"] = field_9
attributes["declaration"] = field_132
attributes
end

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

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

Loading…
Cancel
Save