4185efb83af9b14e341279985e29cf1c7a5eb0f5
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>
Description
No description provided
Languages
TypeScript
88.2%
HTML
7.1%
SCSS
3.7%
Shell
0.6%
Handlebars
0.3%
Other
0.1%