Browse Source

Add declaration to the bulk upload

pull/1148/head
Kat 3 years ago committed by Phil Lee
parent
commit
4dfb6e5120
  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], joint: %i[field_133],
startertenancy: %i[field_8], startertenancy: %i[field_8],
tenancy: %i[field_9], tenancy: %i[field_9],
declaration: %i[field_132],
} }
end end
@ -299,6 +300,7 @@ private
attributes["joint"] = field_133 attributes["joint"] = field_133
attributes["startertenancy"] = field_8 attributes["startertenancy"] = field_8
attributes["tenancy"] = field_9 attributes["tenancy"] = field_9
attributes["declaration"] = field_132
attributes attributes
end 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_101: "1",
field_133: "1", field_133: "1",
field_8: "1", field_8: "1",
field_9: "2" field_9: "2",
field_132: "1"
} }
end end

Loading…
Cancel
Save