Skip to content

Commit

Permalink
Merge pull request #6978 from alphagov/Update-Winter-Fuel-Payment
Browse files Browse the repository at this point in the history
Update Winter Fuel Payment information in benefits if you live abroad
  • Loading branch information
ellohez authored Jan 15, 2025
2 parents 62cd052 + 6b553cc commit fb3dca5
Show file tree
Hide file tree
Showing 8 changed files with 226 additions and 42 deletions.
73 changes: 60 additions & 13 deletions app/flows/uk_benefits_abroad_flow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,17 @@ def define
else
question :employer_paying_ni? # Q10, Q11, Q16 going_abroad and Q9, Q10, Q15 already_abroad
end

when "winter_fuel_payment"
if calculator.country_eligible_for_winter_fuel_payment?
if calculator.country == "ireland"
question :is_british_or_irish?
else
question :worked_in_eea_or_switzerland? # A7 already_abroad
end
# The following are all the same for going_abroad and already abroad
if calculator.country == "ireland"
question :is_british_or_irish?
elsif calculator.country_eligible_for_winter_fuel_payment?
question :worked_in_eea_or_switzerland?
else
outcome :wfp_not_eligible_outcome # A8 going_abroad and A6 already_abroad
outcome :wfp_not_eligible_outcome
end

when "child_benefit"
if calculator.eea_country?
question :do_either_of_the_following_apply? # Q13 going_abroad and Q12 already_abroad
Expand Down Expand Up @@ -579,7 +580,7 @@ def define
when "jsa"
outcome :jsa_eea_going_abroad_maybe_outcome
when "winter_fuel_payment"
outcome :wfp_going_abroad_eea_maybe_outcome
question :born_before_23_September_1958?
when "esa"
outcome(calculator.going_abroad ? :esa_going_abroad_eea_outcome : :esa_already_abroad_eea_outcome)
when "disability_benefits"
Expand All @@ -603,7 +604,7 @@ def define
when "jsa"
outcome :jsa_eea_going_abroad_maybe_outcome
when "winter_fuel_payment"
outcome :wfp_going_abroad_eea_maybe_outcome
question :born_before_23_September_1958?
when "esa"
outcome(calculator.going_abroad ? :esa_going_abroad_eea_outcome : :esa_already_abroad_eea_outcome)
when "disability_benefits"
Expand All @@ -624,6 +625,48 @@ def define
end
end

radio :born_before_23_September_1958? do
option :yes
option :no

next_node do |response|
case response
when "yes"
question :you_or_partner_get_a_benefit_in_the_country?
when "no"
outcome :wfp_not_eligible_outcome
end
end
end

radio :you_or_partner_get_a_benefit_in_the_country? do
option :yes
option :no

next_node do |response|
case response
when "yes"
outcome :wfp_not_eligible_outcome
when "no"
question :you_or_partner_get_a_means_tested_benefit_in_the_country?
end
end
end

radio :you_or_partner_get_a_means_tested_benefit_in_the_country? do
option :yes
option :no

next_node do |response|
case response
when "yes"
outcome :wfp_maybe_outcome
when "no"
outcome :wfp_not_eligible_outcome
end
end
end

radio :is_british_or_irish? do
option :yes
option :no
Expand All @@ -635,22 +678,25 @@ def define
when "jsa"
outcome :jsa_ireland_outcome
when "winter_fuel_payment"
outcome :wfp_ireland_outcome
question :born_before_23_September_1958?
when "esa"
outcome(calculator.going_abroad ? :esa_going_abroad_eea_outcome : :esa_already_abroad_eea_outcome)
when "disability_benefits"
outcome :db_going_abroad_ireland_outcome
end
when "no"
question :worked_in_eea_or_switzerland?
if calculator.benefit == "winter_fuel_payment" && calculator.going_abroad
outcome :wfp_not_eligible_outcome
else
question :worked_in_eea_or_switzerland?
end
end
end
end

outcome :pension_going_abroad_outcome # A2 going_abroad
outcome :jsa_social_security_going_abroad_outcome # A6 going_abroad
outcome :jsa_not_entitled_outcome # A7 going_abroad and A5 already_abroad
outcome :wfp_not_eligible_outcome # A8 going_abroad and A6 already_abroad
outcome :maternity_benefits_maternity_allowance_outcome # A10 going_abroad and A8 already_abroad
outcome :maternity_benefits_social_security_going_abroad_outcome # A12 going_abroad
outcome :maternity_benefits_not_entitled_outcome # A13 going_abroad and A11 already_abroad
Expand Down Expand Up @@ -714,8 +760,9 @@ def define
outcome :jsa_eea_going_abroad_maybe_outcome
outcome :jsa_ireland_outcome

outcome :wfp_going_abroad_eea_maybe_outcome
outcome :wfp_ireland_outcome
outcome :wfp_maybe_outcome
outcome :wfp_not_eligible_outcome

outcome :db_going_abroad_ireland_outcome
end
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<% govspeak_for :body do %>
You might be eligible for Winter Fuel Payment.
Find out [how to apply for Winter Fuel Payment if you live abroad](https://www.gov.uk/winter-fuel-payment/if-you-live-abroad).
<% end %>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<% govspeak_for :body do %>
You cannot get a [Winter Fuel Payment](/winter-fuel-payment).
You cannot get a [Winter Fuel Payment](/winter-fuel-payment) abroad.
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% text_for :title do %>
Were you born before 23 September 1958?
<% end %>

<% options(
"yes": "Yes",
"no": "No"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% text_for :title do %>
Do you or your partner get a pension or a benefit based on your work contributions in the country you are living in?
<% end %>

<% options(
"yes": "Yes",
"no": "No"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<% text_for :title do %>
Did you or your partner get a means-tested benefit in the country you are living in between 16 and 22 September 2024?
<% end %>

<% govspeak_for :body do %>
You must have been getting a benefit from the country you live in that’s equivalent to:

- Pension Credit
- Universal Credit
- Income-related Employment and Support Allowance (ESA)
- Income-based Jobseeker’s Allowance (JSA)
- Income Support
- Working Tax Credit
- Child Tax Credit

<% end %>

<% options(
"yes": "Yes",
"no": "No"
) %>
Loading

0 comments on commit fb3dca5

Please sign in to comment.