etsy-finance-tracker/client
dlawler489 71a01e92ff Fix Profit Analysis using all-time expenses for year/quarter filters
The Profit Analysis expense filter only handled month and rolling
presets, so selecting a year (e.g. 2026) fell through to 'return true'
and counted ALL expenses against that year's revenue — producing a wrong
(often negative) profit that disagreed with the Analytics page.

Unify date filtering: new ProfitAnalysisService.isInDateRange is the
single matcher for months, quarters, years, custom ranges, and presets;
filterOrdersByDateRange and the new filterExpensesByDateRange both use
it, and Profit Analysis now filters expenses through the service so
orders and expenses always share the same range.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-13 18:20:44 +10:00
..
public Add alias matching, cost snapshots, reference-based fee allocation; remove debug tooling 2026-06-12 18:39:59 +10:00
src Fix Profit Analysis using all-time expenses for year/quarter filters 2026-06-13 18:20:44 +10:00
index.html Initial commit: Complete Etsy Business Tracker with Profit Analysis Dashboard 2026-04-20 09:44:54 +10:00
package-lock.json Initial commit: Complete Etsy Business Tracker with Profit Analysis Dashboard 2026-04-20 09:44:54 +10:00
package.json Initial commit: Complete Etsy Business Tracker with Profit Analysis Dashboard 2026-04-20 09:44:54 +10:00
postcss.config.js Initial commit: Complete Etsy Business Tracker with Profit Analysis Dashboard 2026-04-20 09:44:54 +10:00
tailwind.config.js Initial commit: Complete Etsy Business Tracker with Profit Analysis Dashboard 2026-04-20 09:44:54 +10:00
tsconfig.json Initial commit: Complete Etsy Business Tracker with Profit Analysis Dashboard 2026-04-20 09:44:54 +10:00
tsconfig.node.json Initial commit: Complete Etsy Business Tracker with Profit Analysis Dashboard 2026-04-20 09:44:54 +10:00
vite.config.ts Initial commit: Complete Etsy Business Tracker with Profit Analysis Dashboard 2026-04-20 09:44:54 +10:00