-
Notifications
You must be signed in to change notification settings - Fork 13
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
GYR1-622 PAGE 3 Make sure all editable 13614-C fields populate into PDF correctly #5450
Conversation
Heroku app: https://gyr-review-app-5450-ca8741feeeff.herokuapp.com/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note about directly comparing to YES
vs using the enum helper methods. Still approving though, cause I know we're somewhat strapped for time and I don't want to get in the way of functional.
app/lib/pdf_filler/f13614c_pdf.rb
Outdated
yes_no_checkboxes("form1[0].page2[0].Part4[0].q7ExpensesRelatedTo[0]", @intake.paid_self_employment_expenses, include_unsure: true), | ||
yes_no_checkboxes("form1[0].page2[0].Part5[0].q3AdoptAChild[0]", fetch_gated_value(@intake, :adopted_child), include_unsure: true), | ||
# page 3 rhs section 1 of 3 | ||
'form1[0].page3[0].stndardItemizedDeductions[0].form1098[0]' => bool_checkbox(@intake.cv_1098_cb == YES), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may consider enum_prop_yes?
because it is generated and tied to database values. If, say, the literal value of yes
changes in the database, this will begin to fail. Also, if the enum key changes, this will fail here, but the method will begin throwing an exception to alert us that the key has changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a really good point. i've updated the code per your suggestion!
459dc36
to
c08c0f8
Compare
Link to Jira issue
Is PM acceptance required?
Reminder: merge main into this branch and get green tests before merging to main
What was done?
How to test?
For page 3, LHS ...
For page 3, RHS (gray questions) of the PDF ...
checked off on the PDF, and that fields are empty.
PDF, including the three distinct "Notes/Comments" fields on the right edge.
question (near the middle of the page) work correctly on the PDF.
Example