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 789/add child credit xml pdf #4903

Merged
merged 19 commits into from
Nov 6, 2024

Conversation

powersurge360
Copy link
Contributor

@powersurge360 powersurge360 commented Oct 24, 2024

Link to pivotal/JIRA issue

Is PM acceptance required? (delete one)

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

What was done?

  • Adds the child care and dependent credit to the return xml and the pdf

How to test?

  • Automated tests provided
  • To test manually
    • Use the john mfj 8 dependents user and create an idaho intake
    • Progress through the flow, ultimately clicking on download your return' to see the pdf
    • Observe that 2000 is the credit
    • Click 'view main xml'
    • Observe the new 'Form39R' element exists and has the correct value

Screenshots (for visual changes)

  • Before

    • XML
      image

    • PDF
      image

  • After

    • XML
      image

    • PDF
      image

Copy link

Heroku app: https://gyr-review-app-4903-11272b817bee.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4903 (optionally add --tail)

@powersurge360 powersurge360 marked this pull request as ready for review October 25, 2024 14:18
xml: nil, # TODO 39RForm xml to be added in future story
pdf: PdfFiller::Id39rPdf,
xml: SubmissionBuilder::Ty2024::States::Id::Documents::Id39r,
pdf: PdfFiller::Id39rPdf,
include: @submission.data_source.dependents.count > 4
},
Copy link
Contributor

Choose a reason for hiding this comment

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

i would make this include: true because the id39R should be included not just for listing dependents

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was inherited from another ticket that also was touching 39rForm. I think it would break that.

Copy link

Heroku app: https://gyr-review-app-4903-48512e1aeab6.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4903 (optionally add --tail)

@powersurge360 powersurge360 merged commit 2d639e4 into main Nov 6, 2024
7 checks passed
@powersurge360 powersurge360 deleted the FYST-789/add-child-credit-xml-pdf branch November 6, 2024 17:52
@@ -16,18 +16,19 @@ def initialize(submission)

def hash_for_pdf
answers = {
"BL6" => @xml_document.at('Form39R ChildCareCreditAmt')&.text,
Copy link
Contributor

Choose a reason for hiding this comment

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

@powersurge360 how come you included the Form39R here, as opposed to the other selectors IncomeUSObligations and HealthInsurancePaid fields?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think you strictly need it if there is only one particular ChildCareCreditAmt. I mostly did it for clarity and specificity I suppose.

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