Skip to content

Commit

Permalink
adding check for canceled policy in issuer assigned values (#114)
Browse files Browse the repository at this point in the history
* adding check for canceled policy in issuer assigned values

* rubocop:

* updating to correct OR operator

---------

Co-authored-by: Sai Kumar Kotagiri <[email protected]>
  • Loading branch information
erubinst and saikumar9 authored Nov 6, 2023
1 parent a225e7b commit eba0f77
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 eba0f77

Please sign in to comment.