hackforla / hackforla/tdm-calculator
Bug: Add missing fields in the printed PDF
- Dominant language
- JavaScript
- Stars
- 68
- Forks
- 47
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 25
Description
### Overview
The Address and AIN number fields don't show up on the printed PDF if they are left blank on Page 1 while creating project.
### Details
We need to add "ADDRESS" (mapping to Address in Page 1) and "PARCEL # (AIN)" (mapping to AIN/APN (Assessor’s Identification Number) in Page 1) fields to the printed PDF even when these fields are not populated through Calculator Page 1 to ensure consistency with PDFs generated when the concerned fields are populated.
#### Steps to Reproduce
- Go to "Create Project" tab https://tdm-dev.azurewebsites.net/calculation/1/0
- add the name
```
test project 3336
```
- do not add any other details to page 1
- go to page 2
- add `100` to the "Condominium Units" field
- add `100` to the "..... Required Number of Parking Spaces" field
- go to Page 5
- Click the "ACTION" button
- Choose "Print Summary"
- See that the fields are missing for "ADDRESS" and "PARCEL # (AIN)"
Please note: its looks fine on page 5, problem can only be see if you print via the Print Summary, which makes the PDF.
#### Actual Behavior
When Address and AIN fields are not populated on page 1
When Address and AIN fields are populated on page 1
#### Expected Behavior
- All fields should show up on PDF even if they don't have any content in them
### Action Items
- [x] Fix bug.
- [ ] Review with development lead.
- [ ] Review with product, development, and research teams. Update if needed based on feedback.
- [ ] Once finalized, add a slide to the staging deck (see resources)
- [ ] Get Stakeholder sign-off via the stakeholder meeting slide deck.
### Resources/Instructions
#### Staging and Release decks
- [Staging Deck](https://docs.google.com/presentation/d/1crZ3IxqA4hAu3qzD7ns93Ieuqjwh6wyEtuX_46cP-fg/)
- [Staging slide, 3336](https://docs.google.com/presentation/d/1crZ3IxqA4hAu3qzD7ns93Ieuqjwh6wyEtuX_46cP-fg/edit?slide=id.g3f2afe8206d_0_101#slide=id.g3f2afe8206d_0_101)
- Release Deck
- [2025-MM-DD Release deck, slide ISSUE NUMBER]
Contributor guide
Assessment
This issue has not been assessed yet.