Browse Source

add prevten to bulk upload

remotes/origin/bulk-upload-errors-integration
Phil Lee 3 years ago
parent
commit
2d2059355b
  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

@ -269,6 +269,7 @@ private
layear: %i[field_66], layear: %i[field_66],
waityear: %i[field_67], waityear: %i[field_67],
reason: %i[field_52], reason: %i[field_52],
prevten: %i[field_61],
} }
end end
@ -379,6 +380,7 @@ private
attributes["layear"] = field_66 attributes["layear"] = field_66
attributes["waityear"] = field_67 attributes["waityear"] = field_67
attributes["reason"] = field_52 attributes["reason"] = field_52
attributes["prevten"] = field_61
attributes attributes
end end

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

@ -97,6 +97,7 @@ RSpec.describe BulkUpload::Lettings::RowParser do
field_66: "5", field_66: "5",
field_67: "2", field_67: "2",
field_52: "1", field_52: "1",
field_61: "3",
} }
end end

Loading…
Cancel
Save