Skip to content

Commit

Permalink
Premium Change calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
jayreddy519 committed Jun 13, 2024
1 parent 1b93449 commit 9309ed2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/models/change_sets/person_dob_change_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ def update_enrollments_for(policies_to_notify)
enrollee_node_id == enrollee.m_id
end
if policy_node_enrollee
enrollee.update_attributes!({pre_amt: BigDecimal(policy_node_enrollee.benefit.premium_amount || 0.00)})
# enrollee.update_attributes!({pre_amt: BigDecimal(policy_node_enrollee.benefit.premium_amount || 0.00)})

enrollee.pre_amt = BigDecimal(policy_node_enrollee.benefit.premium_amount) || 0.00
enrollee.touch
end
end

Expand Down

0 comments on commit 9309ed2

Please sign in to comment.