-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Drew Proebstel
committed
Dec 27, 2024
1 parent
fe36497
commit db90448
Showing
13 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
app/controllers/state_file/questions/completed_return_email_address_controller.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 @@ | ||
module StateFile | ||
module Questions | ||
class CompletedReturnEmailAddressController < QuestionsController | ||
end | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
app/forms/state_file/completed_return_email_address_controller.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,5 @@ | ||
module StateFile | ||
class CompletedReturnEmailAddressForm < QuestionsForm | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Navigation | ||
class CompletedTaxReturnNavigation < Navigation::StateFileBaseQuestionNavigation | ||
include ControllerNavigation | ||
|
||
SECTIONS = [ | ||
Navigation::NavigationSection.new("state_file.navigation.section_1", [ | ||
Navigation::NavigationStep.new(StateFile::Questions::CompletedReturnEmailAddressController), | ||
]), | ||
].freeze | ||
FLOW = SECTIONS.map(&:controllers).flatten.freeze | ||
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
3 changes: 3 additions & 0 deletions
3
app/views/state_file/questions/completed_return_email_address/edit.html.erb
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,3 @@ | ||
|
||
<% title = "butt" %> | ||
<% content_for :page_title, title %> |
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
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
39 changes: 39 additions & 0 deletions
39
db/data/20241226211010_add_address_to_completed_2023_tax_return.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,39 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddAddressToCompleted2023TaxReturn < ActiveRecord::Migration[7.1] | ||
def up | ||
puts "Migrating Arizona details" | ||
StateFileAzIntake.all.each do |intake| | ||
completed_return = Completed2023TaxReturn.new | ||
completed_return.mailing_street = intake.direct_file_data.mailing_street | ||
completed_return.mailing_apartment = intake.direct_file_data.mailing_apartment | ||
completed_return.mailing_city = intake.direct_file_data.mailing_city | ||
completed_return.mailing_state = intake.direct_file_data.mailing_state | ||
completed_return.mailing_zip = intake.direct_file_data.mailing_zip | ||
completed_return.email_address = intake.email_address | ||
completed_return.state_code = 'az' | ||
completed_return.hashed_ssn = intake.hashed_ssn | ||
completed_return_pdf = Completed2023TaxReturnPdf.new | ||
|
||
end | ||
|
||
puts "Migrating New York details" | ||
StateFileNyIntake.all.each do |intake| | ||
completed_return = Completed2023TaxReturn.new | ||
completed_return.mailing_street = intake.direct_file_data.mailing_street | ||
completed_return.mailing_apartment = intake.direct_file_data.mailing_apartment | ||
completed_return.mailing_city = intake.direct_file_data.mailing_city | ||
completed_return.mailing_state = intake.direct_file_data.mailing_state | ||
completed_return.mailing_zip = intake.direct_file_data.mailing_zip | ||
completed_return.email_address = intake.email_address | ||
completed_return.state_code = 'ny' | ||
completed_return.hashed_ssn = intake.hashed_ssn | ||
completed_return_pdf = Completed2023TaxReturnPdf.new | ||
|
||
end | ||
end | ||
|
||
def down | ||
raise ActiveRecord::IrreversibleMigration | ||
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