FIN-88 · Finance doesn't trust the dashboard
The sales report (GET /api/reports/sales?from=…&to=…&by=day|month) disagrees with the bank statement:
- The March report is labelled 2024-02.
- Sales on the last day of a range are missing (
to is meant to be inclusive).
- Cancelled sales are counted as revenue.
- The average sale per day is far too small on busy reports.
Everything is in UTC. Amounts are integer cents.