Browse Source

add referral to bulk upload

remotes/origin/bulk-upload-errors-integration
Phil Lee 3 years ago
parent
commit
65b480d0b9
  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], cbl: %i[field_75],
chr: %i[field_76], chr: %i[field_76],
cap: %i[field_77], cap: %i[field_77],
referral: %i[field_78],
} }
end end
@ -413,6 +415,8 @@ private
attributes["cap"] = cap attributes["cap"] = cap
attributes["letting_allocation_unknown"] = letting_allocation_unknown attributes["letting_allocation_unknown"] = letting_allocation_unknown
attributes["referral"] = field_78
attributes attributes
end 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_75: "1",
field_76: "2", field_76: "2",
field_77: "2", field_77: "2",
field_78: "2",
} }
end end

Loading…
Cancel
Save