Browse Source

fix leftreg mapping for bulk upload

pull/1148/head
Phil Lee 3 years ago
parent
commit
1b45741278
  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["ecstat1"] = field_35
attributes["armedforces"] = field_45 attributes["armedforces"] = field_45
attributes["leftreg"] = field_114 attributes["leftreg"] = leftreg
attributes["reservist"] = field_46 attributes["reservist"] = field_46
attributes["preg_occ"] = field_47 attributes["preg_occ"] = field_47
@ -441,6 +441,19 @@ private
attributes attributes
end end
def leftreg
case field_114
when 3
3
when 4
1
when 5
2
when 6
0
end
end
def homeless def homeless
case field_68 case field_68
when 1 when 1

Loading…
Cancel
Save