Browse Source

fix leftreg mapping for bulk upload

remotes/origin/bulk-upload-errors-integration
Phil Lee 3 years ago
parent
commit
23b34c32ad
  1. 15
      app/services/bulk_upload/lettings/row_parser.rb

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

@ -394,7 +394,7 @@ private
attributes["ecstat1"] = field_35
attributes["armedforces"] = field_45
attributes["leftreg"] = field_114
attributes["leftreg"] = leftreg
attributes["reservist"] = field_46
attributes["preg_occ"] = field_47
@ -441,6 +441,19 @@ private
attributes
end
def leftreg
case field_114
when 3
3
when 4
1
when 5
2
when 6
0
end
end
def homeless
case field_68
when 1

Loading…
Cancel
Save