Browse Source

add referral to bulk upload

pull/1148/head
Phil Lee 3 years ago
parent
commit
b35c7fcaa2
  1. 4
      app/services/bulk_upload/lettings/row_parser.rb
  2. 2
      spec/services/bulk_upload/lettings/row_parser_spec.rb

4
app/services/bulk_upload/lettings/row_parser.rb

@ -285,6 +285,8 @@ private
cbl: %i[field_75],
chr: %i[field_76],
cap: %i[field_77],
referral: %i[field_78],
}
end
@ -413,6 +415,8 @@ private
attributes["cap"] = cap
attributes["letting_allocation_unknown"] = letting_allocation_unknown
attributes["referral"] = field_78
attributes
end

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

@ -114,6 +114,8 @@ RSpec.describe BulkUpload::Lettings::RowParser do
field_75: "1",
field_76: "2",
field_77: "2",
field_78: "2",
}
end

Loading…
Cancel
Save