-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the provider enters the practitioner name it's stored in the `Claim#first_name` and `Claim#surname` fields. When the practitioner completes their portion of the journey the details they entered on the personal details step overwrites the values entered by the provider in the `Claim#first_name` and `Claim#surname` fields. We have a requirement to show and compare both the provider entered claimant name and practitioner entered claimant name in the admin area, this commit stores the provider entered name information in two new fields allowing us to do this.
- Loading branch information
Showing
8 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
db/migrate/20241030153139_add_claimant_details_to_ey_eligibilities.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class AddClaimantDetailsToEyEligibilities < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :early_years_payment_eligibilities, :practitioner_first_name, :string | ||
add_column :early_years_payment_eligibilities, :practitioner_surname, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,8 @@ | |
expect(eligibility.start_date).to eq answers.start_date | ||
expect(eligibility.provider_claim_submitted_at).to be_present | ||
expect(eligibility.provider_email_address).to eq "[email protected]" | ||
expect(eligibility.practitioner_first_name).to eq answers.first_name | ||
expect(eligibility.practitioner_surname).to eq answers.surname | ||
end | ||
|
||
it "sends a notify email to the practitioner" do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters