Skip to content

fix(core): report net revenue and complete dashboard counts - #148

Open
alexasomba wants to merge 1 commit into
emdashCommerce:mainfrom
alexasomba:codex/dashboard-widget-totals
Open

alexasomba wants to merge 1 commit into
emdashCommerce:mainfrom
alexasomba:codex/dashboard-widget-totals

Conversation

@alexasomba

Copy link
Copy Markdown
Contributor

What changes

Count net captured revenue after refunds and preserve each currency's own total. Use the payment date, fall back to the creation date for older orders, and follow every matching page. Count all past-due subscriptions while keeping the preview to five rows.

Validation

Core typecheck and all 366 Core tests passed. The route fixtures cover a partial refund, separate currencies, a second page, a legacy order missing its payment date, and the past-due count beyond the preview cap.

@cavewebs

cavewebs commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for this. It now conflicts with main in routes/admin-api.ts after the latest merges, could you rebase onto main? I'll merge it once CI is green.

@alexasomba
alexasomba force-pushed the codex/dashboard-widget-totals branch from 9cd6500 to b2985f3 Compare December 4, 2026 05:39
@alexasomba

Copy link
Copy Markdown
Contributor Author

Thanks for flagging the conflict. I rebased onto main and resolved the overlap in routes/admin-api.ts. GitHub reports the PR as mergeable, and all 11 checks passed on b2985f3. CI run

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.

2 participants