wages/frontend
jtricerolph a1a8900196 Fix current-period % Budget bugs on Rolling 12 Weeks/Months tables
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>
2026-07-23 21:18:30 +00:00
..
src Fix current-period % Budget bugs on Rolling 12 Weeks/Months tables 2026-07-23 21:18:30 +00:00
Dockerfile Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
index.html Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
nginx.conf Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
package.json Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
tsconfig.json Fix TS errors: vite/client types + recharts Tooltip formatter signature 2026-07-23 09:07:34 +00:00
vite.config.ts Initial scaffold: wages app 2026-07-23 09:03:52 +00:00