Strom page: toggle charts between bill, calendar year and half-year #10

Merged
clayschaad merged 1 commit from electricity-period-toggle into main 2026-10-30 19:07:54 +00:00
Owner

The Strom charts always showed calendar half-years, so a yearly NeoVac bill (1 July – 30 June) was simply halved. That doesn't make sense for a mandator with only yearly bills.

Changes

  • Toggle above the charts: Abrechnung | Kalenderjahr | Halbjahr
    • Abrechnung (default): one value per bill as entered, labelled 23/24 for a July–June bill, otherwise with dates
    • Kalenderjahr / Halbjahr: a bill reaching over several periods is spread evenly over its months; the page then shows the note "Werte anteilig auf die Monate der Abrechnungsperiode verteilt"
  • Chart titles and aria labels follow the selected period
  • ElectricityHalfYear → ElectricityPeriod with ElectricityPeriodKind and an IsSplit flag
  • Tests renamed to ElectricityPeriodTestShould, plus tests for per-bill grouping, labels, calendar-year splitting and IsSplit
  • CLAUDE.md updated

Testing

  • dotnet build clean, dotnet test 139 passed
  • Not yet checked in the running app

🤖 Generated with Claude Code

The Strom charts always showed calendar half-years, so a yearly NeoVac bill (1 July – 30 June) was simply halved. That doesn't make sense for a mandator with only yearly bills. ## Changes - Toggle above the charts: **Abrechnung | Kalenderjahr | Halbjahr** - **Abrechnung** (default): one value per bill as entered, labelled `23/24` for a July–June bill, otherwise with dates - **Kalenderjahr** / **Halbjahr**: a bill reaching over several periods is spread evenly over its months; the page then shows the note *"Werte anteilig auf die Monate der Abrechnungsperiode verteilt"* - Chart titles and aria labels follow the selected period - `ElectricityHalfYear` → `ElectricityPeriod` with `ElectricityPeriodKind` and an `IsSplit` flag - Tests renamed to `ElectricityPeriodTestShould`, plus tests for per-bill grouping, labels, calendar-year splitting and `IsSplit` - CLAUDE.md updated ## Testing - `dotnet build` clean, `dotnet test` 139 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:07:18 +00:00
The charts always showed half-years, so a yearly NeoVac bill was simply
halved. Now a toggle groups the values per bill (default, no splitting),
per calendar year or per half-year. When a bill reaches over several
periods its values are spread evenly over its months and the page shows
a note. ElectricityHalfYear becomes ElectricityPeriod with a kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clayschaad merged commit dee1e0dde0 into main 2026-10-30 19:07:54 +00:00
clayschaad deleted branch electricity-period-toggle 2026-10-30 19:07:54 +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#10
No description provided.