Commit 75b6d96
committed
refactor(reservation): Replace jsPDF + jspdf-autotable + Lodash + jQuery with pdfmake and
native browser APIs for generating reservation PDFs
- Remove global `allAttributes` variable; attribute data now flows
as an explicit parameter through LoadCustomAttributesData() →
BuildReservationPdfDefinition()
- Replace $.ajax and jQuery event binding with async/await, fetch,
URLSearchParams and addEventListener
- Extract section builder functions: buildHeader(), buildDetails(),
buildAttributes()
- Fix invalid Smarty modifier escape:'json' → |json_encode
- Replace magic number '5' (DATETIME) with $CustomAttributeTypeDateTime
constant exposed from ReservationAttributesPrintPage::PageLoad()
- Expose DayNamesFull to templates for repeat weekday names in PDF1 parent ccb5d3d commit 75b6d96
8 files changed
Lines changed: 609 additions & 315 deletions
File tree
- Pages
- Ajax
- Reservation
- Web/scripts
- tpl
- Ajax/reservation
- Reservation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
236 | 240 | | |
237 | 241 | | |
238 | 242 | | |
| |||
0 commit comments