Skip to content

feat: Add PDF export for Income Statement and Tax Report#135

Open
Samanyu-dev wants to merge 1 commit into
rushikesh-bobade:mainfrom
Samanyu-dev:feature/pdf-export
Open

feat: Add PDF export for Income Statement and Tax Report#135
Samanyu-dev wants to merge 1 commit into
rushikesh-bobade:mainfrom
Samanyu-dev:feature/pdf-export

Conversation

@Samanyu-dev

Copy link
Copy Markdown

Description

This PR implements the missing PDF export functionality for both the Income Statement and Tax Report pages. It integrates jspdf and jspdf-autotable to generate professionally formatted PDF documents client-side using the data already fetched via route loaders.

Specific Changes:

  • Income Statement Export: Wired the "Export PDF" button to trigger a client-side download of fliptrack_income_statement.pdf. The generated document includes a summary table (Revenue, COGS, Gross Profit, Platform/Shipping fees, Net Profit), a monthly breakdown, and a detailed line-item expense log.
  • Tax Report Export: Plumbed sales and expenses loader data down to the ExportOptions component. Replaced the disabled state of the "PDF Report" button with an active click handler downloading fliptrack_tax_report_{taxYear}.pdf, which encompasses a tax summary and a detailed breakdown of deductible business expenses.

Related Issues

Fixes #7

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Screenshots (if applicable)

(N/A - Data exports only, no primary UI changes)

Copilot AI review requested due to automatic review settings July 8, 2026 07:57
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

@Samanyu-dev is attempting to deploy a commit to the participationcorner2025-8967's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the ECSoC26 Required label for ECSOC Sentinel scoring label Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codesense Ai: This PR is too large to review automatically. A human maintainer will take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECSoC26 Required label for ECSOC Sentinel scoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PDF Export for Income Statement & Tax Report

2 participants