equals-wd-card-expense-proc.../templates
JasonFraser 3336bf98bb Add Payslip Generator tool
A self-contained, entirely client-side tool (fill in details, live
preview, download PDF) - no server-side business logic, so unlike the
other tools there's no logic.py, just a route serving the page.

- Wired into the platform: Blueprint at /payslip/, registered in
  main.py, landing-page card added.
- Header logo linked back to / (every other tool's header does this;
  the original standalone page didn't).
- SRI-pinned the PDF-generation script tags so a compromised/MITM'd CDN
  response can't silently run in a page handling employee/contractor
  pay data.
- Earnings/deductions columns padded with blank filler rows so
  "Gross earnings" and "Total deductions" always land on the same
  line, regardless of how many rows either side has.
- Rewrote PDF generation to call html2canvas + jsPDF directly instead
  of through html2pdf.js: its bundled html2canvas mis-rendered (blank
  or truncated) shorter payslips, reproducible and confirmed via a
  controlled A/B test against the current standalone html2canvas.
  Direct usage also fixes page-fit (custom page size, hotfixes for
  correct px scaling, orientation/rounding handled explicitly) so the
  PDF matches the on-screen preview on a single page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-27 17:41:52 -04:00
..
donor_report Add expense trial balance support to Donor Revenue Report 2026-08-25 13:00:11 -04:00
eib Move merchant mapping to a bind-mounted CSV, add in-UI mapping flow 2026-08-19 11:55:43 -04:00
financial_reports Fix Category Summary/Balance Sheet reconciliation and account grouping 2026-08-25 21:54:07 -04:00
payslip Add Payslip Generator tool 2026-08-27 17:41:52 -04:00
home.html Restructure into a multi-tool platform with blueprints 2026-08-18 11:25:13 -04:00