Skip to content

Commit

Permalink
Add remaining EY tasks
Browse files Browse the repository at this point in the history
Adds the remaining EY tasks along with copy for the tasks being
unavilable.
  • Loading branch information
rjlynch committed Nov 8, 2024
1 parent 9a031aa commit 43ac396
Show file tree
Hide file tree
Showing 5 changed files with 697 additions and 4 deletions.
9 changes: 9 additions & 0 deletions app/models/policies/early_years_payments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,14 @@ def approvable?(claim)
def decision_deadline_date(claim)
claim.eligibility.start_date + RETENTION_PERIOD
end

def task_available?(task)
case task.name
when "employment"
task.claim.eligibility.employment_task_available?
else
task.claim.eligibility.practitioner_journey_completed?
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ def applicable_task_names
tasks = []

tasks << "identity_confirmation"
tasks << "student_loan_plan" if claim.submitted_without_slc_data?
tasks << "employment"
tasks << "student_loan_plan" if claim.submitted_without_slc_data?
tasks << "payroll_details" if claim.must_manually_validate_bank_details?
tasks << "payroll_gender" if claim.payroll_gender_missing? || claim.tasks.exists?(name: "payroll_gender")
tasks << "matching_details" if matching_claims.exists?

tasks
Expand Down
17 changes: 15 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1467,12 +1467,25 @@ en:
no_response: No response
other: Other
task_questions:
matching_details:
title: Is this claim still valid despite having matching details with other claims?
employment:
title: Is the claimant still working at the current nursery above?
unavailable: This task will be available from %{employment_task_available_at}
identity_confirmation:
title: "Do these names match?"
student_loan_amount:
title: Does the claimant’s student loan amount and plan type match the information we hold about their loan?
unavailable: This task is not available until the claimant has submitted their claim
student_loan_plan:
unavailable: This task is not available until the claimant has submitted their claim
payroll_details:
title: "Check bank account details"
question: "The claimant’s personal bank account details have not been automatically validated. Has the claimant confirmed their personal bank account details?"
unavailable: This task is not available until the claimant has submitted their claim
payroll_gender:
unavailable: This task is not available until the claimant has submitted their claim
matching_details:
title: Is this claim still valid despite having matching details with other claims?
unavailable: This task is not available until the claimant has submitted their claim
early_years_payment_practitioner:
journey_name: Claim an early years financial incentive payment
feedback_email: "[email protected]"
Expand Down
Loading

0 comments on commit 43ac396

Please sign in to comment.