Browse Source

Look at Q16aProplensec2 column if Q16aProplen2 is empty

pull/1353/head
Kat 3 years ago
parent
commit
38f16be6e4
  1. 2
      app/services/imports/sales_logs_import_service.rb

2
app/services/imports/sales_logs_import_service.rb

@ -105,7 +105,7 @@ module Imports
attributes["previous_la_known"] = nil
attributes["hhregres"] = unsafe_string_as_integer(xml_doc, "ArmedF")
attributes["hhregresstill"] = still_serving(xml_doc)
attributes["proplen"] = safe_string_as_integer(xml_doc, "Q16aProplen2")
attributes["proplen"] = safe_string_as_integer(xml_doc, "Q16aProplen2") || safe_string_as_integer(xml_doc, "Q16aProplensec2")
attributes["mscharge"] = monthly_charges(xml_doc, attributes)
attributes["mscharge_known"] = 1 if attributes["mscharge"].present?
attributes["prevten"] = unsafe_string_as_integer(xml_doc, "Q6PrevTenure")

Loading…
Cancel
Save