The "Prev wk" figure shown under Forecast Full Week was reusing prevCost, which is deliberately scoped to "same elapsed days as WTD" (e.g. only Mon-Wed of last week if today's Wednesday) — correct for the per-department table's WTD-vs-WTD "vs Prev Wk" column, but wrong paired with totalForecast, which projects a full 7 days. Comparing a full-week projection against a few days of last week made prev week look artificially low and the delta look inflated. Added prevFullCost (full Mon-Sun of the prior week — already present in the 14-day actuals fetch) for the full-week comparison specifically; left prevCost/totalPrev untouched for the table's WTD comparisons. |
||
|---|---|---|
| .. | ||
| public/icons | ||
| src | ||
| Dockerfile | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||