Add "Wasser & Heizung" page for the NeoVac water and heating bills #19

Merged
clayschaad merged 5 commits from water-bill-guide into main 2026-11-01 18:41:15 +00:00
Owner

New page Wasser & Heizung (/water-heating, under Charts) for the NeoVac water and heating bills. NeoVac only reports per-mille shares of the property; the own costs in CHF come from the property manager's statement. The existing Wasser page stays unchanged for bills with the CHF values entered directly (e.g. Mannenbach).

  • WaterHeatingBill stored per mandator in water-heating.json (also editable in the JSON editor): consumption (warm/cold m³, heat MWh), NeoVac ‰ shares, own water and heating costs.
  • CalculateCosts splits water costs into base/consumption by ‰, consumption into warm/cold water by m³, and the heating into warm water (by the warm water ‰) and rooms. The CHF parts are stored so periods can add them up.
  • Charts: water m³ (stacked), heat MWh, costs (stacked: base costs, cold water, warm water, heating warm water, heating rooms); grid with all parts.
  • Dialog grouped like the statements, with a guide image showing where each value is, and a "Kontrolle" section (WaterHeatingBillChecks): NeoVac ‰ vs. the optional ‰ of the property manager, the property totals implied by the own share, and prices per unit vs. the previous bill (flagged above ±25 %).
  • Dialog fields in an aligned two-column grid.

Verified: all 176 tests pass (new: model, checks, repository, JSON editor). Checked in a separate app instance on a scratch copy of the data: entering the 2024/25 bill gives Grundkosten 67.48, Warmwasser 57.23, Kaltwasser 179.59, Heizung Warmwasser 91.02, Räume 360.63 (total 755.95), the charts and the checks render, the date picker still works. Not checked against more than one real bill.

🤖 Generated with Claude Code

New page **Wasser & Heizung** (`/water-heating`, under Charts) for the NeoVac water and heating bills. NeoVac only reports per-mille shares of the property; the own costs in CHF come from the property manager's statement. The existing **Wasser** page stays unchanged for bills with the CHF values entered directly (e.g. Mannenbach). - `WaterHeatingBill` stored per mandator in `water-heating.json` (also editable in the JSON editor): consumption (warm/cold m³, heat MWh), NeoVac ‰ shares, own water and heating costs. - `CalculateCosts` splits water costs into base/consumption by ‰, consumption into warm/cold water by m³, and the heating into warm water (by the warm water ‰) and rooms. The CHF parts are stored so periods can add them up. - Charts: water m³ (stacked), heat MWh, costs (stacked: base costs, cold water, warm water, heating warm water, heating rooms); grid with all parts. - Dialog grouped like the statements, with a guide image showing where each value is, and a "Kontrolle" section (`WaterHeatingBillChecks`): NeoVac ‰ vs. the optional ‰ of the property manager, the property totals implied by the own share, and prices per unit vs. the previous bill (flagged above ±25 %). - Dialog fields in an aligned two-column grid. **Verified:** all 176 tests pass (new: model, checks, repository, JSON editor). Checked in a separate app instance on a scratch copy of the data: entering the 2024/25 bill gives Grundkosten 67.48, Warmwasser 57.23, Kaltwasser 179.59, Heizung Warmwasser 91.02, Räume 360.63 (total 755.95), the charts and the checks render, the date picker still works. Not checked against more than one real bill. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
clayschaad added 5 commits 2026-11-01 18:41:10 +00:00
NeoVac only reports per-mille shares of the property; the own costs in CHF
come from the property manager's statement. The new page stores both in
water-heating.json (per mandator) and calculates the CHF parts: water base
and consumption costs by their per-mille share, consumption split by m³
into warm and cold water, and the warm water part of the heating costs
(the rest is room heating). Charts for water (m³), heat (MWh) and the
stacked costs; the dialog has a guide image showing where each value is
on the bills. The Wasser page stays for bills with the CHF values entered
directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dialog shows a "Kontrolle" section (WaterHeatingBillChecks): the NeoVac
per-mille shares against the optional ones of the property manager,
optional meter readings continuing from the previous bill, the property
totals implied by the own share, and the prices per unit compared with
the previous bill (flagged above ±25 %).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The "Stand neu" fields for warm water, cold water and heat and their
continuity checks are gone; the per-mille, property total and price
checks stay. The "Kontrolle" heading is only shown when there is a check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fields sit in a two-column grid with a fixed label width, so labels and inputs line up across all sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clayschaad merged commit f94380b548 into main 2026-11-01 18:41:15 +00:00
clayschaad deleted branch water-bill-guide 2026-11-01 18:41:15 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: clayschaad/AccountingNext#19
No description provided.