Browse Source

add preg_occ to bulk upload

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

@ -259,6 +259,8 @@ private
armedforces: %i[field_45], armedforces: %i[field_45],
leftreg: %i[field_114], leftreg: %i[field_114],
reservist: %i[field_46], reservist: %i[field_46],
preg_occ: %i[field_47],
} }
end end
@ -360,6 +362,8 @@ private
attributes["leftreg"] = field_114 attributes["leftreg"] = field_114
attributes["reservist"] = field_46 attributes["reservist"] = field_46
attributes["preg_occ"] = field_47
attributes attributes
end end

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

@ -89,6 +89,8 @@ RSpec.describe BulkUpload::Lettings::RowParser do
field_45: "1", field_45: "1",
field_114: "4", field_114: "4",
field_46: "1", field_46: "1",
field_47: "1",
} }
end end

Loading…
Cancel
Save