Browse Source

feat: fix homeless assignment bug

pull/1687/head
natdeanlewissoftwire 3 years ago
parent
commit
8fefc5ea69
  1. 11
      app/services/bulk_upload/lettings/year2023/row_parser.rb

11
app/services/bulk_upload/lettings/year2023/row_parser.rb

@ -1104,7 +1104,7 @@ private
attributes["reason"] = field_102 attributes["reason"] = field_102
attributes["reasonother"] = field_103 attributes["reasonother"] = field_103
attributes["prevten"] = field_104 attributes["prevten"] = field_104
attributes["homeless"] = homeless attributes["homeless"] = field_105
attributes["prevloc"] = prevloc attributes["prevloc"] = prevloc
attributes["previous_la_known"] = previous_la_known attributes["previous_la_known"] = previous_la_known
@ -1374,15 +1374,6 @@ private
return 1 if field_86 == 1 return 1 if field_86 == 1
end end
def homeless
case field_105
when 1
1
when 12
11
end
end
def prevloc def prevloc
field_109 field_109
end end

Loading…
Cancel
Save