Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fyst-996 add two income sub md #4963

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

Conversation

squanto
Copy link
Contributor

@squanto squanto commented Nov 12, 2024

Link to pivotal/JIRA issue

https://codeforamerica.atlassian.net/browse/FYST-996

Is PM acceptance required? (delete one)

  • Yes - don't merge until JIRA issue is accepted!

What was done?

  • add a two income subtractions form to maryland intakes
  • add columns to capture primary and spouse deduction amounts

How to test?

  • go through the maryland flow for creating an intake
  • when selecting a payload to import, select one with a fed student loan amount, like "zeuse many w2's"
  • Verify
  • Risk Assessment
  • n/a

Screenshots (for visual changes)

Screenshot 2024-11-04 at 4 16 18 PM

copy of #4945 to restar heroku builds

Copy link

Heroku app: https://gyr-review-app-4963-5054cb9a135f.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4963 (optionally add --tail)

squanto and others added 18 commits November 13, 2024 11:02
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
@squanto squanto force-pushed the FYST-996-add-two-income-sub-md branch from 93999a0 to 16fe2ce Compare November 13, 2024 16:20
Co-authored-by: Mike Rotondo <[email protected]>

def valid_amounts
if @intake.direct_file_data.fed_student_loan_interest.present?
if (primary_student_loan_interest_ded_amount.to_f + spouse_student_loan_interest_ded_amount.to_f).to_i != @intake.direct_file_data.fed_student_loan_interest.to_i
Copy link
Contributor

@arinchoi03 arinchoi03 Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[q] was there a reason we chose to_i over to_round?
If a client enters 5.25 and 5.25 for both amounts, and the resulting sum is 10.5, is it more correct to make sure it gets compared to the federal_student_loan_interest as 10 or 11? I'm guessing this is a really unlikely situation here that someone seeing an integer value will purposefully add decimal points here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm this should call @intake.direct_file_data.fed_student_loan_interest.to_f instead then, and the prev value should not call to_i, so that the decimals are compared properly


def valid_amounts
if @intake.direct_file_data.fed_student_loan_interest.present?
if (primary_student_loan_interest_ded_amount.to_f + spouse_student_loan_interest_ded_amount.to_f) != @intake.direct_file_data.fed_student_loan_interest.to_f
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

say fed_student_loan_interest is 100 and the person puts in 50 and 49.5 (for some reason), do we want to be strict and have them correct that data to be 50? or should we round these inputs?

<p class="spacing-below-5"><%= t(".subtitle") %></p>
<p class="text--small spacing-below-5"><%= t(".total", total_deduction: number_to_currency(@total_deduction)) %></p>
<div class="form-question spacing-below-25">
<%= f.vita_min_money_field(:primary_student_loan_interest_ded_amount, "Your portion of the student loan interest deduction", classes: ["form-width--long"]) %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the label text have to be translated?

</div>

<div class="form-question spacing-below-25">
<%= f.vita_min_money_field(:spouse_student_loan_interest_ded_amount, "Your spouse's portion of the student loan interest deduction", classes: ["form-width--long"]) %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and translations here as well!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good points, added 👍

@anisharamnani
Copy link
Contributor

I have a few minor translation comments, but the tests are failing, so I don't feel confident approving. I'm happy to take a look once again once they're passing!

squanto and others added 2 commits November 15, 2024 11:47
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Copy link
Contributor

@arinchoi03 arinchoi03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: ty for your patience over the many rounds of reviews !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants