|
|
@ -207,6 +207,13 @@ module Imports |
|
|
|
attributes["postcode_full"] = nil |
|
|
|
attributes["postcode_full"] = nil |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Soft validations can become required answers, set them to yes by default |
|
|
|
|
|
|
|
attributes["pregnancy_value_check"] = 0 |
|
|
|
|
|
|
|
attributes["retirement_value_check"] = 0 |
|
|
|
|
|
|
|
attributes["rent_value_check"] = 0 |
|
|
|
|
|
|
|
attributes["net_income_value_check"] = 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Sets the log creator |
|
|
|
owner_id = field_value(xml_doc, "meta", "owner-user-id").strip |
|
|
|
owner_id = field_value(xml_doc, "meta", "owner-user-id").strip |
|
|
|
if owner_id.present? |
|
|
|
if owner_id.present? |
|
|
|
attributes["created_by"] = User.find_by(old_user_id: owner_id) |
|
|
|
attributes["created_by"] = User.find_by(old_user_id: owner_id) |
|
|
@ -266,7 +273,7 @@ module Imports |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def fields_not_present_in_softwire_data |
|
|
|
def fields_not_present_in_softwire_data |
|
|
|
%w[majorrepairs illness_type_0 tshortfall_known] |
|
|
|
%w[majorrepairs illness_type_0 tshortfall_known pregnancy_value_check retirement_value_check rent_value_check net_income_value_check] |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def check_status_completed(case_log, previous_status) |
|
|
|
def check_status_completed(case_log, previous_status) |
|
|
|