utilities/frontend/src
jtricerolph d223592aec Exclude sub-meters from category subtotals in Estimates/Reports/internal API
Water Softener is configured as a submeter (parent_meter_id) of Main Hotel
Water, but estimates.js, reports.js, and internal.js's cost + estimate
routes summed every active meter flatly regardless of parent/child, double-
counting the softener's consumption on top of the main meter's own reading.

Sub-meter rows are still shown individually (useful for diagnostics), just
excluded from the category subtotal/total sums, with a 'submeter' badge on
the row explaining why. Fixes the water figures on Estimates, Reports, and
downstream consumers of internal.js (Directors report, Weekly Actuals).
2026-08-17 09:56:02 +00:00
..
components Add iOS install hint + Apple PWA meta tags, fix missing beforeinstallprompt handler 2026-08-06 14:12:12 +00:00
hooks Initial commit — utilities app (meter readings, tariffs, cost tracking) 2026-07-26 17:33:42 +00:00
pages Exclude sub-meters from category subtotals in Estimates/Reports/internal API 2026-08-17 09:56:02 +00:00
api.ts Add per-meter usage chart on MeterDetail for device-fed meters 2026-07-28 21:09:52 +00:00
App.tsx Add iOS install hint + Apple PWA meta tags, fix missing beforeinstallprompt handler 2026-08-06 14:12:12 +00:00
index.css Group Reports/Estimates by category, merge extras, add data-basis column 2026-07-28 14:28:57 +00:00
main.tsx Add iOS install hint + Apple PWA meta tags, fix missing beforeinstallprompt handler 2026-08-06 14:12:12 +00:00
types.ts Exclude sub-meters from category subtotals in Estimates/Reports/internal API 2026-08-17 09:56:02 +00:00
vite-env.d.ts Initial commit — utilities app (meter readings, tariffs, cost tracking) 2026-07-26 17:33:42 +00:00