Add "Wasser" page for the water bills #11

Merged
clayschaad merged 1 commit from water-bills into main 2026-10-30 20:19:07 +00:00
Owner

New page Wasser (/water) for the water bills, laid out like the Strom page.

Changes

  • WaterBill: period, warm/cold water in m³ and CHF, base costs (Grundkosten); TotalM3, WarmWaterShare and TotalChf are computed
  • Stored per mandator in water.json (WaterBillRepository), like electricity.json; editable in the JSON editor (mandator folder)
  • Page with grid, add/edit dialog (shows total m³ and CHF) and two charts: stacked consumption (m³) and total costs, with the same period toggle (Abrechnung | Kalenderjahr | Halbjahr) and split note
  • Nav link "Wasser" below "Strom"
  • Period grouping made generic: ElectricityPeriod → BillPeriod<T> over IPeriodBill<T> (implemented by ElectricityBill and WaterBill); Strom behaves as before
  • Tests: WaterBillTestShould, WaterBillRepositoryTestShould, water cases in BillPeriodTestShould and RawDataRepositoryTestShould
  • CLAUDE.md updated

Testing

  • Build clean, dotnet test 151 passed
  • Not yet checked in the running app

🤖 Generated with Claude Code

New page **Wasser** (`/water`) for the water bills, laid out like the Strom page. ## Changes - `WaterBill`: period, warm/cold water in m³ and CHF, base costs (Grundkosten); `TotalM3`, `WarmWaterShare` and `TotalChf` are computed - Stored per mandator in `water.json` (`WaterBillRepository`), like `electricity.json`; editable in the JSON editor (mandator folder) - Page with grid, add/edit dialog (shows total m³ and CHF) and two charts: stacked consumption (m³) and total costs, with the same period toggle (Abrechnung | Kalenderjahr | Halbjahr) and split note - Nav link "Wasser" below "Strom" - Period grouping made generic: `ElectricityPeriod` → `BillPeriod<T>` over `IPeriodBill<T>` (implemented by `ElectricityBill` and `WaterBill`); Strom behaves as before - Tests: `WaterBillTestShould`, `WaterBillRepositoryTestShould`, water cases in `BillPeriodTestShould` and `RawDataRepositoryTestShould` - CLAUDE.md updated ## Testing - Build clean, `dotnet test` 151 passed - Not yet checked in the running app 🤖 Generated with [Claude Code](https://claude.com/claude-code)
clayschaad added 1 commit 2026-10-30 19:56:21 +00:00
Same layout as the Strom page: grid and dialog for the bills (warm and
cold water in m3 and CHF, base costs; total m3 and CHF are computed),
stored per mandator in water.json, and charts for consumption and total
costs with the period toggle (bill, calendar year, half-year).

The period grouping is now generic: ElectricityPeriod becomes
BillPeriod<T> over IPeriodBill<T>, implemented by ElectricityBill and
WaterBill. water.json can be edited in the JSON editor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clayschaad merged commit eefbfff3eb into main 2026-10-30 20:19:07 +00:00
clayschaad deleted branch water-bills 2026-10-30 20:19:08 +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#11
No description provided.