Add methods for calculating total profit
Author: vincangerCreated Dec 1, 2023Updated Sep 29, 2026
Labelsenhancementhelp wantedadmin dashboard
At the moment, we only calculate the total revenue from Stripe and display it on the RevenueAndProfitChart.
It would be great to provide a universal way for Admins to add their costs and calculate their profit to display here as well.
Tasks:
- Add a
calculateProfit()function to the daily stats cron job atsrc/server/workers/calculateDailyStats.ts. - Provide a way for Admins to add a list of their costs via a form on a new page in the Admin Dashbaord, accessible via the sidebar
Source: wasp-lang/open-saas