Skip to content

feat(reports): savings tax report generator — CSV/PDF/1099, encryptio…#510

Merged
Devsol-01 merged 2 commits intoDevsol-01:mainfrom
shogun444:feat/savings-tax-report
Mar 30, 2026
Merged

feat(reports): savings tax report generator — CSV/PDF/1099, encryptio…#510
Devsol-01 merged 2 commits intoDevsol-01:mainfrom
shogun444:feat/savings-tax-report

Conversation

@shogun444
Copy link
Copy Markdown
Contributor

@shogun444 shogun444 commented Mar 29, 2026

Implement Savings Tax Report Generator

Overview

Adds a tax report generation system for users to export annual savings activity in CSV and PDF formats.

Features

  • GET /reports/tax/:year (JWT-protected, uses authenticated user)

  • CSV export with per-product breakdown:

    • deposits, withdrawals, interest, capital gains
  • 1099-style CSV output with fields:

    • payer/recipient info, year, interest income, tax withheld
  • PDF export using pdfkit

  • Encrypted storage (AES-256-GCM via TAX_REPORT_KEY)

Capital Gains

  • Basic calculation:

    • gains = withdrawals - deposits

Testing

  • Unit tests for CSV, 1099 CSV, and PDF generation
  • All tests passing (37 suites, 209 tests)
  • Verified with --detectOpenHandles

Notes / Limitations

  • 1099 format is not fully IRS-compliant
  • Capital gains logic is simplified
  • No multi-jurisdiction support yet
  • PDF formatting is minimal

Summary

Provides a secure, tested foundation for tax reporting with scope for future enhancements.

Closes #479

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nestera Ready Ready Preview, Comment Mar 30, 2026 9:03am

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@shogun444 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Devsol-01 Devsol-01 merged commit 10ec925 into Devsol-01:main Mar 30, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Savings Tax Report Generator

2 participants