Skip to content

Commit

Permalink
Add the employment task for IRP claims
Browse files Browse the repository at this point in the history
We want admins to be able to confirm the employment details of a claim
as part of the tasks to approve a claim.
  • Loading branch information
felixclack committed Jul 3, 2024
1 parent 61ead2f commit 2a04980
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/claim_checking_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(claim)
delegate :policy, to: :claim

def applicable_task_names
return %w[identity_confirmation visa arrival_date] if policy.international_relocation_payments?
return %w[identity_confirmation visa arrival_date employment] if policy.international_relocation_payments?

@applicable_task_names ||= Task::NAMES.dup.tap do |task_names|
task_names.delete("induction_confirmation") unless claim.policy == Policies::EarlyCareerPayments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ def arrival_date
]
end

def employment
[
[translate("admin.current_school"), display_school(eligibility.current_school)]
]
end

def identity_confirmation
[
["Nationality", eligibility.nationality],
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,8 @@ en:
title: "Is the claimant’s visa type eligible for a claim?"
arrival_date:
title: "Does the claimant’s arrival date match the above information from their claim?"
employment:
title: "Does the claimant’s current school match the above information from their claim?"

further_education_payments:
landing_page: Find out if you are eligible for any incentive payments for further education teachers
Expand Down
2 changes: 1 addition & 1 deletion spec/support/admin_view_claim_feature_shared_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def expect_page_to_have_policy_sections(policy)
when Policies::EarlyCareerPayments
["Identity confirmation", "Qualifications", "Induction confirmation", "Census subjects taught", "Employment", "Student loan plan", "Decision"]
when Policies::InternationalRelocationPayments
["Identity confirmation", "Visa", "Arrival date", "Decision"]
["Identity confirmation", "Visa", "Arrival date", "Employment", "Decision"]
else
raise "Unimplemented policy: #{policy}"
end
Expand Down

0 comments on commit 2a04980

Please sign in to comment.