No description
Rolling12Months: current month's budget wasn't prorated at all, so %Budget compared MTD actual against the FULL monthly budget — always looked artificially favorable. Now prorates by elapsed PY DOW-matched sales share (flat day-count fallback), reusing already-fetched data. Rolling12Weeks: budget was prorated, but the elapsed-day count mixed a real timestamp with Math.ceil(...)+1, always overstating elapsed days by one and inflating the budget denominator. Rewrote to sum per-day budgets by date string (no fractional-time bug), and applied the same PY DOW-weighting as the Weekly page, sourcing each day from its own calendar month so weeks spanning a month boundary split correctly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| backend | ||
| frontend | ||
| docker-compose.yml | ||
| seed-app.js | ||