Bastian Wagner 4185efb83a fix: negate expense amounts and stop blank trailing pages in cashbox PDF export
Expenses were stored as positive amounts (DB convention) and buildRows()
never negated them, so they were added to the running budget total
instead of subtracted. Negate expense amounts for team-wallet
transactions, mirroring the existing signedFlowAmount() convention in
teams.service.ts.

Separately, addFooters() placed footer text inside the reserved bottom
margin without an explicit height option, which made pdfkit's
LineWrapper treat every footer draw as overflowing the page and call
continueOnNewPage() twice per page - inflating page counts 3x with
blank trailing pages. Bounding the footer text to its own small height
box prevents pdfkit's automatic pagination from firing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-04 13:26:45 +02:00
2026-07-31 21:02:47 +02:00
2026-08-01 13:17:26 +02:00
2026-07-31 22:01:09 +02:00
2026-07-31 21:20:16 +02:00
2026-08-01 13:17:26 +02:00
Description
No description provided
8.7 MiB
Languages
TypeScript 88.2%
HTML 7.1%
SCSS 3.7%
Shell 0.6%
Handlebars 0.3%
Other 0.1%