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-788 Add interest income from obligations of the us #4914

Merged

Conversation

tahsinaislam
Copy link
Contributor

@tahsinaislam tahsinaislam commented Oct 25, 2024

Link to pivotal/JIRA issue

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

Is PM acceptance required?

  • 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?

  • Added ID 39R calculator
  • Added in ID 39R XML
  • added in field for Section B Line 3 for ID39R pdf
  • added persona for idaho with 1099 INT

How to test?

  • units tests were added for calculator, xml and pdf
  • PM can you use persona Tim 1099 INT to test

Screenshots (for visual changes)

Screenshot 2024-10-25 at 5 10 25 PM
Screenshot 2024-10-25 at 5 10 12 PM

Copy link

Heroku app: https://gyr-review-app-4914-647421ccee45.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4914 (optionally add --tail)

@tahsinaislam tahsinaislam marked this pull request as ready for review October 25, 2024 22:10
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.

just one comment on the fixture but otherwise looks good!

def calculate_sec_b_line_3
sum = 0
@direct_file_json_data.interest_reports.each do |interest_report|
sum += interest_report.interest_on_government_bonds
Copy link
Contributor

Choose a reason for hiding this comment

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

note to self: this will be 0 if the value was nil in the JSON, due to the DfJsonWrapper reader method, so we don't have to protect against a potential nil value 🙌

"middleInitial": "T",
"lastName": "Interest",
"dateOfBirth": "1980-01-01",
"isPrimaryFiler": true
Copy link
Contributor

Choose a reason for hiding this comment

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

can the filer also have a tin field as well since that's something we should always expect (hopefully) from IRS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks i'll add in the tin values!

@tahsinaislam tahsinaislam merged commit 344740c into main Oct 28, 2024
7 checks passed
@tahsinaislam tahsinaislam deleted the FYST-788-interest-income-from-obligations-of-the-us branch October 28, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants