Support #10388
openProjects Module — Development Updates
100%
Subtasks
Related issues
Updated by Ramu Kodali about 1 month ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Today I reworked the Form Application PDF in PCA Phase 1. Generation has moved out of the browser into the backend (PDFKit), so the output is identical for every user and the section/label definitions live in one place instead of the client. The document is now produced section by section for all four utility forms — JCP&L, PECO, ACE and PSE&G — where previously only JCP&L had a proper structure and the other three printed as a raw list of fields. The layout mirrors the on-screen form so the printed application reads like the document staff filled in: grey section cards, a three-column field grid, each field boxed with its label above a read-only input, and the same green/amber tinting the form uses for auto-filled versus still-missing values, plus a legend explaining it. Each PDF also carries a header with the project number, customer, facility address and application status, a completion count ("31 / 33 fields completed"), and page footers with page numbers; long sections break across pages cleanly and repeat their heading. I also fixed a defect where the footer caused a blank page to be appended for every page (a JCP&L form was printing 6 pages instead of 2), and corrected Preview/Download to render the values currently on screen instead of the last saved draft — previously anything auto-filled since the last "Save Draft" was missing from the printed document. Output was verified by rendering the generated PDFs back to images and extracting their text, including checking that selecting a given utility produces that utility's document with no content from the others.