Skip to content

Commit 4b42a38

Browse files
authored
Gyr1 867 13614c clean up (#6138)
1 parent 184a074 commit 4b42a38

25 files changed

+60
-31
lines changed

app/forms/hub/create_client_form.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CreateClientForm < ClientForm
99
:married,
1010
:separated,
1111
:widowed,
12-
:lived_with_spouse,
12+
:lived_without_spouse,
1313
:divorced,
1414
:divorced_year,
1515
:separated_year,

app/forms/hub/update_13614c_form_page1.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Update13614cFormPage1 < ClientForm
77
:married,
88
:separated,
99
:widowed,
10-
:lived_with_spouse,
10+
:lived_without_spouse,
1111
:divorced,
1212
:divorced_year,
1313
:separated_year,
@@ -48,7 +48,7 @@ class Update13614cFormPage1 < ClientForm
4848
:spouse_us_citizen,
4949
:spouse_visa,
5050
:never_married,
51-
:married_for_all_of_tax_year,
51+
:married_last_day_of_year,
5252
:receive_written_communication,
5353
:preferred_written_language,
5454
:presidential_campaign_fund_donation,

app/forms/hub/update_client_form.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class UpdateClientForm < ClientForm
88
:married,
99
:separated,
1010
:widowed,
11-
:lived_with_spouse,
11+
:lived_without_spouse,
1212
:divorced,
1313
:divorced_year,
1414
:separated_year,

app/helpers/filing_status_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def marital_status(client)
2525

2626
statuses = [
2727
(I18n.t("general.married") if intake.married == "yes"),
28-
(I18n.t("general.lived_with_spouse") if intake.lived_with_spouse == "yes"),
28+
(I18n.t("general.lived_without_spouse") if intake.try(:lived_without_spouse) == "yes" || intake.try(:lived_with_spouse) == "no"),
2929
("#{I18n.t("general.separated")} #{intake.separated_year}" if intake.separated == "yes"),
3030
("#{I18n.t("general.divorced")} #{intake.divorced_year}" if intake.divorced == "yes"),
3131
("#{I18n.t("general.widowed")} #{intake.widowed_year}" if intake.widowed == "yes"),

app/lib/pdf_filler/f13614c_pdf.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class F13614cPdf
1111
ever_married: [
1212
:paid_alimony,
1313
:divorced,
14-
:lived_with_spouse,
14+
:lived_without_spouse,
1515
:married,
1616
:received_alimony,
1717
:separated,
@@ -86,8 +86,10 @@ def hash_for_pdf
8686
"statusLegallySeparated[0].statusLegallySeparated[0]" => @intake.separated_yes?,
8787
"statusDivorced[0].statusDivorced[0]" => @intake.divorced_yes?,
8888
"statusWidowed[0].statusWidowed[0]" => @intake.widowed_yes?,
89-
"liveApart[0].liveApartNo[0]" => @intake.lived_with_spouse_yes?,
90-
"liveApart[0].liveApartYes[0]" => @intake.lived_with_spouse_no?
89+
"liveApart[0].liveApartNo[0]" => @intake.lived_without_spouse_no?,
90+
"liveApart[0].liveApartYes[0]" => @intake.lived_without_spouse_yes?,
91+
"lastDay[0].lastDayYes[0]" => @intake.married_last_day_of_year_yes?,
92+
"lastDay[0].lastDayNo[0]" => @intake.married_last_day_of_year_no?
9193
}
9294
end
9395
)

app/models/intake.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,13 @@
206206
# issued_identity_pin :integer default(0), not null
207207
# job_count :integer
208208
# lived_with_spouse :integer default(0), not null
209+
# lived_without_spouse :integer default(0), not null
209210
# locale :string
210211
# made_estimated_tax_payments :integer default(0), not null
211212
# made_estimated_tax_payments_amount :decimal(12, 2)
212213
# married :integer default(0), not null
213214
# married_for_all_of_tax_year :integer default(0), not null
215+
# married_last_day_of_year :integer default(0), not null
214216
# multiple_states :integer default(0), not null
215217
# navigator_has_verified_client_identity :boolean
216218
# navigator_name :string

app/models/intake/ctc_intake.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,13 @@
206206
# issued_identity_pin :integer default(0), not null
207207
# job_count :integer
208208
# lived_with_spouse :integer default(0), not null
209+
# lived_without_spouse :integer default(0), not null
209210
# locale :string
210211
# made_estimated_tax_payments :integer default(0), not null
211212
# made_estimated_tax_payments_amount :decimal(12, 2)
212213
# married :integer default(0), not null
213214
# married_for_all_of_tax_year :integer default(0), not null
215+
# married_last_day_of_year :integer default(0), not null
214216
# multiple_states :integer default(0), not null
215217
# navigator_has_verified_client_identity :boolean
216218
# navigator_name :string

app/models/intake/gyr_intake.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,13 @@
206206
# issued_identity_pin :integer default("unfilled"), not null
207207
# job_count :integer
208208
# lived_with_spouse :integer default("unfilled"), not null
209+
# lived_without_spouse :integer default("unfilled"), not null
209210
# locale :string
210211
# made_estimated_tax_payments :integer default("unfilled"), not null
211212
# made_estimated_tax_payments_amount :decimal(12, 2)
212213
# married :integer default("unfilled"), not null
213214
# married_for_all_of_tax_year :integer default("unfilled"), not null
215+
# married_last_day_of_year :integer default("unfilled"), not null
214216
# multiple_states :integer default("unfilled"), not null
215217
# navigator_has_verified_client_identity :boolean
216218
# navigator_name :string
@@ -450,9 +452,11 @@ class Intake::GyrIntake < Intake
450452
enum income_over_limit: { unfilled: 0, yes: 1, no: 2, unsure: 3 }, _prefix: :income_over_limit
451453
enum issued_identity_pin: { unfilled: 0, yes: 1, no: 2, unsure: 3 }, _prefix: :issued_identity_pin
452454
enum lived_with_spouse: { unfilled: 0, yes: 1, no: 2, unsure: 3 }, _prefix: :lived_with_spouse
455+
enum lived_without_spouse: { unfilled: 0, yes: 1, no: 2, unsure: 3 }, _prefix: :lived_without_spouse
453456
enum made_estimated_tax_payments: { unfilled: 0, yes: 1, no: 2, unsure: 3 }, _prefix: :made_estimated_tax_payments
454457
enum married: { unfilled: 0, yes: 1, no: 2 }, _prefix: :married
455458
enum married_for_all_of_tax_year: { unfilled: 0, yes: 1, no: 2 }, _prefix: :married_for_all_of_tax_year
459+
enum married_last_day_of_year: { unfilled: 0, yes: 1, no: 2 }, _prefix: :married_last_day_of_year
456460
enum multiple_states: { unfilled: 0, yes: 1, no: 2, unsure: 3 }, _prefix: :multiple_states
457461
enum needs_help_previous_year_3: {unfilled: 0, yes: 1, no: 2}, _prefix: :needs_help_previous_year_3
458462
enum needs_help_previous_year_2: {unfilled: 0, yes: 1, no: 2}, _prefix: :needs_help_previous_year_2

app/views/hub/clients/edit_13614c_form_page1.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143
</div>
144144
<div class="hub-form__row">
145145
<%= f.hub_checkbox(:married, t("general.married"), options: { classes: ["checkbox--wide"], checked_value: "yes", unchecked_value: "no" }) %>
146-
<%= f.cfa_select(:married_for_all_of_tax_year, 'If married, were you married for all of 2024', yes_no_options_for_select) %>
147-
<%= f.cfa_select(:lived_with_spouse, t(".fields.lived_with_spouse"), yes_no_options_for_select) %>
146+
<%= f.cfa_select(:married_last_day_of_year, 'If married, were you married on the last day of the year', yes_no_options_for_select) %>
147+
<%= f.cfa_select(:lived_without_spouse, t(".fields.lived_without_spouse"), yes_no_options_for_select) %>
148148
</div>
149149
<div class="hub-form__row">
150150
<%= f.hub_checkbox(:divorced, t("general.divorced"), options: { classes: ["checkbox--wide"], checked_value: "yes", unchecked_value: "no" }) %>

app/views/shared/_marital_status_fields.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<%= f.hub_checkbox(:married, t("general.married"), options: { checked_value: "yes", unchecked_value: "no" }) %>
88
</div>
99
<div class="hub-form__row">
10-
<%= f.hub_checkbox(:lived_with_spouse, t("general.lived_with_spouse"), options: { classes: ["checkbox--wide"], checked_value: "yes", unchecked_value: "no" }) %>
10+
<%= f.hub_checkbox(:lived_without_spouse, t("general.lived_without_spouse"), options: { classes: ["checkbox--wide"], checked_value: "yes", unchecked_value: "no" }) %>
1111
</div>
1212
<div class="hub-form__row">
1313
<%= f.hub_checkbox(:separated, t("general.separated"), options: { classes: ["checkbox--wide"], checked_value: "yes", unchecked_value: "no" }) %>

0 commit comments

Comments
 (0)