Skip to content

Commit

Permalink
adding check for canceled policy in issuer assigned values
Browse files Browse the repository at this point in the history
  • Loading branch information
erubinst committed Nov 2, 2023
1 parent 3269415 commit 71569fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/operations/reports/generate_rcno_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def issuer_assigned_subscriber_id

issuer_issuer_subscriber_id = @rcni_row[18]

if ffm_issuer_subscriber_id.blank? && issuer_issuer_subscriber_id.blank?
if @policy.aasm_state == "canceled" | (ffm_issuer_subscriber_id.blank? && issuer_issuer_subscriber_id.blank?)
return [ffm_issuer_subscriber_id, issuer_issuer_subscriber_id,
"D"]
end
Expand Down Expand Up @@ -417,7 +417,9 @@ def issuer_assigned_member_id

issuer_issuer_member_id = @rcni_row[19]

return [ffm_issuer_member_id, issuer_issuer_member_id, "D"] if ffm_issuer_member_id.blank? && issuer_issuer_member_id.blank?
if @policy.aasm_state == "canceled" | (ffm_issuer_member_id.blank? && issuer_issuer_member_id.blank?)
return [ffm_issuer_member_id, issuer_issuer_member_id, "D"]
end

if ffm_issuer_member_id.blank? && issuer_issuer_member_id.present?
return [ffm_issuer_member_id, issuer_issuer_member_id,
Expand Down Expand Up @@ -464,7 +466,7 @@ def issuer_assigned_policy_number

issuer_issuer_policy_number = @rcni_row[21]

if ffm_issuer_policy_number.blank? && issuer_issuer_policy_number.blank?
if @policy.aasm_state == "canceled" | (ffm_issuer_policy_number.blank? && issuer_issuer_policy_number.blank?)
return [ffm_issuer_policy_number, issuer_issuer_policy_number,
"D"]
end
Expand Down

0 comments on commit 71569fc

Please sign in to comment.