feat: Add PDF export for Income Statement and Tax Report#135
Open
Samanyu-dev wants to merge 1 commit into
Open
feat: Add PDF export for Income Statement and Tax Report#135Samanyu-dev wants to merge 1 commit into
Samanyu-dev wants to merge 1 commit into
Conversation
|
@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. |
|
Codesense Ai: This PR is too large to review automatically. A human maintainer will take a look! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements the missing PDF export functionality for both the Income Statement and Tax Report pages. It integrates
jspdfandjspdf-autotableto generate professionally formatted PDF documents client-side using the data already fetched via route loaders.Specific Changes:
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.salesandexpensesloader data down to theExportOptionscomponent. Replaced the disabled state of the "PDF Report" button with an active click handler downloadingfliptrack_tax_report_{taxYear}.pdf, which encompasses a tax summary and a detailed breakdown of deductible business expenses.Related Issues
Fixes #7
Type of Change
Checklist:
Screenshots (if applicable)
(N/A - Data exports only, no primary UI changes)