🎯 ISSUE RESOLVED: Profit calculations were different between pages due to inconsistent date filtering 📊 ROOT CAUSE: - Profit Analysis Dashboard: "2026" = calendar year 2026 (Jan-Dec 2026) - Analytics Page: "This Year" = rolling 365 days (May 2025-May 2026) 🔧 FIXES APPLIED: - Unified date filtering logic using consistent calendar year approach - Added "2026 Full Year" option to Analytics page for exact comparison - Changed default to "2026" to match Profit Analysis dashboard - Updated "This Year" to mean current calendar year (2026), not rolling 365 days ✅ NOW BOTH PAGES SHOW IDENTICAL DATA when comparing same date ranges! The profit calculations will now match exactly when comparing equivalent time periods. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||