Skip to content

feat: Add invoice monthly summary endpoint#381

Open
HuiNeng6 wants to merge 1 commit intodavedumto:mainfrom
HuiNeng6:feat/routes-b-invoice-summary
Open

feat: Add invoice monthly summary endpoint#381
HuiNeng6 wants to merge 1 commit intodavedumto:mainfrom
HuiNeng6:feat/routes-b-invoice-summary

Conversation

@HuiNeng6
Copy link
Copy Markdown

Add GET /api/routes-b/invoices/summary endpoint for month-by-month earnings summary.

  • Query param: months (default 6, max 12)
  • Returns invoicesPaid and earned per month
  • Only counts paid invoices

Fixes: #380

- GET /api/routes-b/invoices/summary - month-by-month earnings summary
- Query param: months (default 6, max 12)
- Returns one entry per month with invoicesPaid and earned
- Months with no paid invoices show zeros

Fixes: davedumto#380
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@HuiNeng6 is attempting to deploy a commit to the david's projects Team on Vercel.

A member of the Team first needs to authorize it.

@HuiNeng6
Copy link
Copy Markdown
Author

Hi! Following up on this PR for invoice monthly summary. Ready for review. Thank you!

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.

[routes-b] GET /api/routes-b/invoices/summary — monthly invoice earnings summary

1 participant