From 56382b73ca166c8a064d3535f5f82c9a4f46f416 Mon Sep 17 00:00:00 2001 From: nks2109 Date: Mon, 17 Apr 2023 12:11:20 -0400 Subject: [PATCH 1/2] rcno dental policies must use aptc_credit premiums from proper spans for subscriber segment total premium amounts --- app/operations/reports/generate_rcno_report.rb | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/app/operations/reports/generate_rcno_report.rb b/app/operations/reports/generate_rcno_report.rb index b1e39f22..340792b4 100644 --- a/app/operations/reports/generate_rcno_report.rb +++ b/app/operations/reports/generate_rcno_report.rb @@ -607,13 +607,8 @@ def total_premium_amount if @overall_flag == "G" segment = fetch_segment(@member.coverage_start) kind = @policy.insurance_line_code == "HLT" ? "health" : "dental" - premium_amount = if kind == "dental" - @policy.total_premium_amount - else - segment&.total_premium_amount - end unprocessed_total_premium = begin - format('%.2f', premium_amount) + format('%.2f', segment&.total_premium_amount) rescue StandardError "0.00" end @@ -624,11 +619,7 @@ def total_premium_amount return [nil, @rcni_row[45], "D"] end kind = @policy.insurance_line_code == "HLT" ? "health" : "dental" - premium_amount = if kind == "dental" - @policy.total_premium_amount - else - segment&.total_premium_amount - end + premium_amount = segment&.total_premium_amount @total_premium_amount += premium_amount ffm_total_premium = begin format('%.2f', premium_amount) From 705cc0351e64dca155d34b694a36448a59d769e0 Mon Sep 17 00:00:00 2001 From: nks2109 Date: Wed, 3 May 2023 10:42:48 -0400 Subject: [PATCH 2/2] removing unsed condition --- app/operations/reports/generate_rcno_report.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/operations/reports/generate_rcno_report.rb b/app/operations/reports/generate_rcno_report.rb index 340792b4..69e10657 100644 --- a/app/operations/reports/generate_rcno_report.rb +++ b/app/operations/reports/generate_rcno_report.rb @@ -606,7 +606,6 @@ def total_premium_amount # unprocessed policy if @overall_flag == "G" segment = fetch_segment(@member.coverage_start) - kind = @policy.insurance_line_code == "HLT" ? "health" : "dental" unprocessed_total_premium = begin format('%.2f', segment&.total_premium_amount) rescue StandardError @@ -618,7 +617,6 @@ def total_premium_amount @overall_flag = "N" return [nil, @rcni_row[45], "D"] end - kind = @policy.insurance_line_code == "HLT" ? "health" : "dental" premium_amount = segment&.total_premium_amount @total_premium_amount += premium_amount ffm_total_premium = begin