utilities/backend
jtricerolph 68dab06b0a Fix zero consumption for open-period reports with sparse readings
getPeriodConsumption()'s fallback branch picked the "first" baseline
reading via readingOnOrAfter(periodStart) before readingOnOrBefore(),
so a manually-read meter with only one reading entered this month
collapsed first and last onto the same row and reported no_data/£0,
even with a valid prior-month baseline available. Prefer the
pre-period reading first.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-12 12:00:15 +00:00
..
src Fix zero consumption for open-period reports with sparse readings 2026-10-12 12:00:15 +00:00
Dockerfile Initial commit — utilities app (meter readings, tariffs, cost tracking) 2026-07-26 17:33:42 +00:00
package.json Commit missing MQTT/history/scheduler files referenced by meters.js 2026-07-28 13:32:22 +00:00