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

Add in lines 15 and 16 to MD Form 502 #4980

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

Conversation

anisharamnani
Copy link
Contributor

@anisharamnani anisharamnani commented Nov 14, 2024

Link to pivotal/JIRA issue

https://codeforamerica.atlassian.net/browse/ABCD-123](https://codeforamerica.atlassian.net/browse/FYST-655

Is PM acceptance required? (delete one)

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

Reminder: merge main into this branch and get green tests before merging to main

What was done?

Lines 15 and 16 for MD Form 502 were added. Lines 9, 10a, and 11 were stubbed.

  • Alternatives considered

How to test?

  • the DF data for "Todd 1099 int" works
  • you should see lines 15 and 16 filled in
    Screenshot 2024-11-14 at 4 27 45 PM

Copy link

Heroku app: https://gyr-review-app-4980-16c76781e3ce.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4980 (optionally add --tail)

@@ -361,12 +376,12 @@ def calculate_deduction_method
s_mfs_d: {
12000 => 1_800,
17999 => ->(x) { x * 0.15 },
18000 => 2_700,
Float::INFINITY => 2_700,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jenny-heath helped sort out there was a bug here where its supposed to be "$18,000 or over" and so the band is changed in this line. Here is the original ticket for reference.

describe "#calculate_line_17" do
context "when method is standard" do
[
[["single", "married_filing_separately", "dependent"], [
[12_000, 1_800],
[17_999, 17_999 * 0.15],
[18_000, 2_700],
[18_001, 2_700],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed the tests to expose the above mentioned bug.

@anisharamnani anisharamnani marked this pull request as ready for review November 14, 2024 21:47
@@ -440,5 +439,21 @@
expect(pdf_fields["Enter 13"].to_i).to eq 0
end
end

describe "Line 15" do
Copy link
Contributor

Choose a reason for hiding this comment

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

minor thing but there's a section above context "subtractions" do that you could move these blocks into

Copy link
Contributor

@jenny-heath jenny-heath left a comment

Choose a reason for hiding this comment

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

looks great!

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