Skip to content

Commit b88f035

Browse files
committed
GYR1 Add Vehicle Credit Question
1 parent 7059f67 commit b88f035

File tree

14 files changed

+48
-1
lines changed

14 files changed

+48
-1
lines changed
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module Questions
2+
class VehicleCreditController < QuestionsController
3+
include AuthenticatedClientConcern
4+
5+
layout "yes_no_question"
6+
7+
private
8+
9+
def method_name
10+
"new_vehicle_purchased"
11+
end
12+
end
13+
end

app/forms/vehicle_credit_form.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class VehicleCreditForm < QuestionsForm
2+
set_attributes_for :intake, :new_vehicle_purchased
3+
4+
def save
5+
@intake.update(attributes_for(:intake))
6+
end
7+
end

app/lib/navigation/gyr_question_navigation.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ class GyrQuestionNavigation
137137
Questions::TaxCreditDisallowedController,
138138
Questions::EstimatedTaxPaymentsController,
139139
Questions::SelfEmploymentLossController,
140+
Questions::VehicleCreditController,
140141
Questions::EnergyEfficientPurchasesController, # sets 'completed_yes_no_questions_at'
141142
# generate and replace the "Preliminary" 13614-C signed by the primary and spouse with yes/no questions filled out
142143

app/models/intake.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
# needs_help_previous_year_2 :integer default(0), not null
220220
# needs_help_previous_year_3 :integer default(0), not null
221221
# needs_to_flush_searchable_data_set_at :datetime
222+
# new_vehicle_purchased :integer default(0)
222223
# no_eligibility_checks_apply :integer default(0), not null
223224
# no_ssn :integer default(0), not null
224225
# not_full_time_student :integer default(0), not null

app/models/intake/ctc_intake.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
# needs_help_previous_year_2 :integer default(0), not null
220220
# needs_help_previous_year_3 :integer default(0), not null
221221
# needs_to_flush_searchable_data_set_at :datetime
222+
# new_vehicle_purchased :integer default(0)
222223
# no_eligibility_checks_apply :integer default(0), not null
223224
# no_ssn :integer default(0), not null
224225
# not_full_time_student :integer default("unfilled"), not null

app/models/intake/gyr_intake.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
# needs_help_previous_year_2 :integer default("unfilled"), not null
220220
# needs_help_previous_year_3 :integer default("unfilled"), not null
221221
# needs_to_flush_searchable_data_set_at :datetime
222+
# new_vehicle_purchased :integer default("unfilled")
222223
# no_eligibility_checks_apply :integer default("unfilled"), not null
223224
# no_ssn :integer default("unfilled"), not null
224225
# not_full_time_student :integer default(0), not null
@@ -525,6 +526,7 @@ class Intake::GyrIntake < Intake
525526
enum receive_written_communication: { unfilled: 0, yes: 1, no: 2 }, _prefix: :receive_written_communication
526527
enum presidential_campaign_fund_donation: { unfilled: 0, primary: 1, spouse: 2, primary_and_spouse: 3, no: 4 }, _prefix: :presidential_campaign_fund_donation
527528
enum register_to_vote: { unfilled: 0, yes: 1, no: 2 }, _prefix: :register_to_vote
529+
enum new_vehicle_purchased: { unfilled: 0, yes: 1, no: 2 }, _prefix: :new_vehicle_purchased
528530
enum cv_1098_cb: { unfilled: 0, yes: 1, no: 2 }, _prefix: :cv_1098_cb
529531
enum cv_med_expense_standard_deduction_cb: { unfilled: 0, yes: 1, no: 2 }, _prefix: :cv_med_expense_standard_deduction_cb
530532
enum cv_med_expense_itemized_deduction_cb: { unfilled: 0, yes: 1, no: 2 }, _prefix: :cv_med_expense_itemized_deduction_cb
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<% content_for :form_question, t("views.questions.vehicle_credit.title", :year => current_intake.most_recent_filing_year, :count => current_intake.filer_count)%>
2+
3+
<% content_for :form_help_text, t("views.questions.vehicle_credit.body") %>

config/locales/en.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5905,6 +5905,11 @@ en:
59055905
title:
59065906
one: Have you had the Earned Income Credit, Child Tax Credit, American Opportunity Credit, or Head of Household filing status disallowed in a prior year?
59075907
other: Have you or your spouse had the Earned Income Credit, Child Tax Credit, American Opportunity Credit, or Head of Household filing status disallowed in a prior year?
5908+
vehicle_credit:
5909+
title:
5910+
one: Did you purchase a new vehicle in %{year}?
5911+
other: Did you or your spouse purchase a new vehicle in %{year}?
5912+
body: If you purchased a vehicle assembled in the US, you may be eligible for a tax credit! Your tax preparer will collect your VIN number to confirm if you qualify.
59085913
verification:
59095914
body: 'A message with your code has been sent to:'
59105915
error_message: Incorrect verification code.

config/locales/es.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5927,6 +5927,11 @@ es:
59275927
many: "¿Ha tenido usted o su pareja el crédito por ingreso del trabajo, el crédito tributario por hijos, el crédito por oportunidad estadounidense o el estado civil de cabeza de familia rechazado en un año anterior?"
59285928
one: "¿Ha sido rechazado en el año anterior el Crédito por Ingreso del Trabajo, el Crédito Tributario por Hijos, el Crédito por Oportunidad Estadounidense o el estado civil de Jefe de Familia?"
59295929
other: "¿Ha tenido usted o su pareja el crédito por ingreso del trabajo, el crédito tributario por hijos, el crédito por oportunidad estadounidense o el estado civil de cabeza de familia rechazado en un año anterior?"
5930+
vehicle_credit:
5931+
title:
5932+
one: ¿Compró usted un vehículo nuevo en %{year}?
5933+
other: ¿Usted o su cónyuge compraron un vehículo nuevo en %{year}?
5934+
body: Si compró un vehículo ensamblado en Estados Unidos, es posible que califique para un crédito fiscal. La persona que prepare sus impuestos usará el número VIN para confirmar si califica.
59305935
verification:
59315936
body: 'Se le ha enviado un mensaje con su código a:'
59325937
error_message: El código de verificación es incorrecto

0 commit comments

Comments
 (0)