utilities/frontend
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
..
public/icons Initial commit — utilities app (meter readings, tariffs, cost tracking) 2026-07-26 17:33:42 +00:00
src Exclude sub-meters from category subtotals in Estimates/Reports/internal API 2026-08-17 09:56:02 +00:00
Dockerfile Initial commit — utilities app (meter readings, tariffs, cost tracking) 2026-07-26 17:33:42 +00:00
index.html Add iOS install hint + Apple PWA meta tags, fix missing beforeinstallprompt handler 2026-08-06 14:12:12 +00:00
nginx.conf Initial commit — utilities app (meter readings, tariffs, cost tracking) 2026-07-26 17:33:42 +00:00
package-lock.json Add per-meter usage chart on MeterDetail for device-fed meters 2026-07-28 21:09:52 +00:00
package.json Add per-meter usage chart on MeterDetail for device-fed meters 2026-07-28 21:09:52 +00:00
tsconfig.json Initial commit — utilities app (meter readings, tariffs, cost tracking) 2026-07-26 17:33:42 +00:00
vite.config.ts Scope PWA manifest to app's own path instead of origin root 2026-07-29 13:47:20 +00:00