wages/frontend/src
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
..
components Add per-employee dept breakdown via modal popup 2026-07-23 11:02:11 +00:00
hooks Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
pages Fix current-period % Budget bugs on Rolling 12 Weeks/Months tables 2026-07-23 21:18:30 +00:00
api.ts Add per-employee dept breakdown via modal popup 2026-07-23 11:02:11 +00:00
App.tsx Mobile nav: replace bottom icon bar with burger menu for consistency 2026-07-23 17:43:13 +00:00
index.css Mobile nav: replace bottom icon bar with burger menu for consistency 2026-07-23 17:43:13 +00:00
main.tsx Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
types.ts Add per-employee dept breakdown via modal popup 2026-07-23 11:02:11 +00:00