app/domain/operations/families/create_or_update_family_member.rb
# (REF pivotal ticket: 178800234) Whenever this class is called to create_or_update_vlp_document, below code is overriding vlp_document_params and only creates document for income subject.
# This code is blocking ATP and MCR migration for vlp data, commenting below code as this does not make anysense to override the incoming vlp_document_params
# TODO: refactor this accordingly based on requirement
# def create_or_update_income_vlp_document(applicant_params, person)
#   Operations::People::CreateOrUpdateVlpDocument.new.call(params: {applicant_params: applicant_params.merge(subject: "Income"), person: person})
# end
(REF pivotal ticket: 178800234) Whenever this class is called to create_or_update_vlp_document, below code is overriding vlp_document_params and only creates document for income subject.
( REF pivotal ticket : 178800234 ) Whenever this class is called to create_or_update_vlp_document below code is overriding vlp_document_params and only creates document for income subject .
def create_or_update_relationship(person, family, relationship_kind)
        primary_person = family.primary_person
        exiting_relationship = primary_person.person_relationships.detect{|rel| rel.relative_id.to_s == person.id.to_s}
        return if exiting_relationship && exiting_relationship.kind == relationship_kind
        primary_person.ensure_relationship_with(person, relationship_kind)
      end
def create_or_update_relationship ( person , family , relationship_kind ) primary_person = family . primary_person exiting_relationship = primary_person . person_relationships . detect { | rel | rel . relative_id . to_s == person . id . to_s } return if exiting_relationship && exiting_relationship . kind == relationship_kind primary_person . ensure_relationship_with ( person , relationship_kind ) end
(REF pivotal ticket: 178800234) Whenever this class is called to create_or_update_vlp_document, below code is overriding vlp_document_params and only creates document for income subject.
( REF pivotal ticket : 178800234 ) Whenever this class is called to create_or_update_vlp_document below code is overriding vlp_document_params and only creates document for income subject .
person
family
relationship_kind