From a58f08e82a7830e3fd1b6a210353a5a9d66a0482 Mon Sep 17 00:00:00 2001 From: Claudio Schaad Date: Sun, 1 Nov 2026 19:33:21 +0100 Subject: [PATCH] Wasser & Heizung: plausibility checks in the bill dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- CLAUDE.md | 2 +- .../Models/WaterHeatingBill.cs | 26 ++- .../Models/WaterHeatingBillChecks.cs | 141 ++++++++++++++++ .../WaterHeatingBillChecksTestShould.cs | 151 ++++++++++++++++++ .../Dialogs/WaterHeatingBillDialog.razor | 56 +++++-- .../Dialogs/WaterHeatingBillDialog.razor.cs | 26 ++- .../Components/Pages/WaterHeating.razor.cs | 8 +- .../images/water-heating-bill-guide.svg | 29 ++-- 8 files changed, 405 insertions(+), 34 deletions(-) create mode 100644 Schaad.Accounting.Common/Models/WaterHeatingBillChecks.cs create mode 100644 Schaad.Accounting.Tests/WaterHeatingBillChecksTestShould.cs diff --git a/CLAUDE.md b/CLAUDE.md index c0e70ea..866c75b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -67,7 +67,7 @@ When a new year is opened, the previous year's data is copied as the starting po - **AnalyticsService** — loads all years of the current mandator (via `MultiYearRepository`) into an `AccountingAnalysis` (expenses, income, net, assets) for the Analyse page; queries run in memory - **Strom** page (`Electricity`, `/electricity`, under "Charts" in the menu) — grid and dialog (FluentDataGrid/`ElectricityBillDialog`) over `IElectricityBillRepository`'s `ElectricityBill` records (one yearly NeoVac bill each: kWh/CHF for grid and PV, side costs; `TotalKwh`, `PvShare`, `TotalChf`, `ChfPerKwh` are computed); three Chart.js charts via `ChartJsChart` (stacked kWh, CHF/kWh lines, total CHF), filtered by the shared `BillChartToolbar` (`BillChartFilter`): grouped per bill, calendar year (default) or half-year (`BillPeriod.FromBills` over `IPeriodBill`; a bill reaching over several periods is spread evenly over its months and the page shows a note) and limited to a from/to year range (periods overlapping it are kept whole) - **Wasser** page (`Water`, `/water`, under "Charts" in the menu) — same layout as Strom over `IWaterBillRepository`'s `WaterBill` records (warm/cold water m³ and CHF, base costs; `TotalM3`, `WarmWaterShare`, `TotalChf` are computed); two charts (stacked m³, total CHF) with the same `BillChartToolbar` -- **Wasser & Heizung** page (`WaterHeating`, `/water-heating`, under "Charts" in the menu) — same layout for NeoVac bills where only per-mille shares are known, over `IWaterHeatingBillRepository`'s `WaterHeatingBill` records: consumption (warm/cold m³, heat MWh) and ‰ shares from NeoVac, own water/heating costs in CHF from the property manager's statement; `WaterHeatingBillDialog` calls `CalculateCosts`, which stores the CHF parts (water split into base/consumption by ‰, consumption split by m³, warm water part of the heating), so `AddShare` can sum them per period; `RoomHeatingChf` is the rest of the heating. Three charts (stacked m³, MWh, stacked CHF) and a guide image (`water-heating-bill-guide.svg`) +- **Wasser & Heizung** page (`WaterHeating`, `/water-heating`, under "Charts" in the menu) — same layout for NeoVac bills where only per-mille shares are known, over `IWaterHeatingBillRepository`'s `WaterHeatingBill` records: consumption (warm/cold m³, heat MWh) and ‰ shares from NeoVac, own water/heating costs in CHF from the property manager's statement; `WaterHeatingBillDialog` calls `CalculateCosts`, which stores the CHF parts (water split into base/consumption by ‰, consumption split by m³, warm water part of the heating), so `AddShare` can sum them per period; `RoomHeatingChf` is the rest of the heating. The dialog shows plausibility checks from `WaterHeatingBillChecks` (NeoVac ‰ vs. the optional ‰ of the property manager, optional meter readings continuing from the previous bill, implied property totals, prices per unit vs. the previous bill, flagged above ±25 %). Three charts (stacked m³, MWh, stacked CHF) and a guide image (`water-heating-bill-guide.svg`) ### UI structure diff --git a/Schaad.Accounting.Common/Models/WaterHeatingBill.cs b/Schaad.Accounting.Common/Models/WaterHeatingBill.cs index 2c10008..656f0ad 100644 --- a/Schaad.Accounting.Common/Models/WaterHeatingBill.cs +++ b/Schaad.Accounting.Common/Models/WaterHeatingBill.cs @@ -35,6 +35,18 @@ namespace Schaad.Accounting.Models [Display(Name = "Wärme")] public decimal HeatingMwh { get; set; } + // Optional meter readings ("Stand neu"), only for the checks (see WaterHeatingBillChecks): + // the previous bill's reading plus this consumption must give this reading. + + [Display(Name = "Zählerstand Warmwasser")] + public decimal? WarmWaterMeter { get; set; } + + [Display(Name = "Zählerstand Kaltwasser")] + public decimal? ColdWaterMeter { get; set; } + + [Display(Name = "Zählerstand Wärme")] + public decimal? HeatingMeter { get; set; } + // NeoVac per-mille shares of the property, column "Anteil (‰)". [Display(Name = "Wasser Grundkosten-Anteil")] @@ -59,6 +71,15 @@ namespace Schaad.Accounting.Models [Display(Name = "Heizkosten")] public decimal HeatingCostsChf { get; set; } + // Optional per-mille shares as listed by the property manager, only for the checks: they + // must match the NeoVac ones. + + [Display(Name = "Wasser-Anteil Verwaltung")] + public decimal? ManagerWaterPermille { get; set; } + + [Display(Name = "Heizungs-Anteil Verwaltung")] + public decimal? ManagerHeatingPermille { get; set; } + // Calculated by CalculateCosts. [Display(Name = "Grundkosten Wasser")] @@ -111,7 +132,10 @@ namespace Schaad.Accounting.Models private static decimal Round(decimal value) => Math.Round(value, 2, MidpointRounding.AwayFromZero); - /// Adds up consumption and CHF values; the per-mille shares don't add up and are left out. + /// + /// Adds up consumption and CHF values; the per-mille shares and meter readings don't add up + /// and are left out. + /// public void AddShare(WaterHeatingBill other, decimal share) { WarmWaterM3 += other.WarmWaterM3 * share; diff --git a/Schaad.Accounting.Common/Models/WaterHeatingBillChecks.cs b/Schaad.Accounting.Common/Models/WaterHeatingBillChecks.cs new file mode 100644 index 0000000..e38a557 --- /dev/null +++ b/Schaad.Accounting.Common/Models/WaterHeatingBillChecks.cs @@ -0,0 +1,141 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; + +namespace Schaad.Accounting.Models +{ + public enum BillCheckResult + { + /// A value to compare by hand with the statements. + Info, + Ok, + Warning + } + + public record BillCheck(BillCheckResult Result, string Text); + + /// + /// Plausibility checks for a , shown in its dialog: the NeoVac and + /// property manager's per-mille shares must match, the meter readings must continue from the + /// previous bill, and the prices per unit shouldn't jump. Checks whose optional inputs are + /// missing are left out. + /// + public static class WaterHeatingBillChecks + { + /// Price changes against the previous bill above this share are flagged. + public const decimal MaxPriceChange = 0.25m; + + private const decimal PermilleTolerance = 0.005m; + private const decimal MeterTolerance = 0.0005m; + + private static readonly CultureInfo SwissNumbers = CreateSwissNumbers(); + + /// The bill that ended last before started, if any. + public static WaterHeatingBill PreviousOf(IEnumerable bills, WaterHeatingBill bill) + => bills.Where(b => b.Id != bill.Id && b.PeriodTo < bill.PeriodFrom).MaxBy(b => b.PeriodTo); + + public static IReadOnlyList Check(WaterHeatingBill bill, WaterHeatingBill previous) + { + var checks = new List(); + + var waterPermille = bill.WaterBasePermille + bill.WaterConsumptionPermille; + if (bill.ManagerWaterPermille is decimal managerWater) + { + checks.Add(new BillCheck( + Result(Math.Abs(waterPermille - managerWater) < PermilleTolerance), + $"Wasser: NeoVac {N(bill.WaterBasePermille)} + {N(bill.WaterConsumptionPermille)} = {N(waterPermille)} ‰, Verwaltung {N(managerWater)} ‰")); + } + if (bill.ManagerHeatingPermille is decimal managerHeating) + { + checks.Add(new BillCheck( + Result(Math.Abs(bill.HeatingPermille - managerHeating) < PermilleTolerance), + $"Heizung: NeoVac {N(bill.HeatingPermille)} ‰, Verwaltung {N(managerHeating)} ‰")); + } + if (bill.WarmWaterHeatingPermille > bill.HeatingPermille) + { + checks.Add(new BillCheck(BillCheckResult.Warning, + $"Heizung WW {N(bill.WarmWaterHeatingPermille)} ‰ ist grösser als Heizung total {N(bill.HeatingPermille)} ‰")); + } + + AddMeterCheck(checks, "Warmwasser", bill.WarmWaterMeter, bill.WarmWaterM3, previous?.WarmWaterMeter); + AddMeterCheck(checks, "Kaltwasser", bill.ColdWaterMeter, bill.ColdWaterM3, previous?.ColdWaterMeter); + AddMeterCheck(checks, "Wärme", bill.HeatingMeter, bill.HeatingMwh, previous?.HeatingMeter); + + // The own share divided by the per-mille share gives the costs of the whole property, + // which are on the property manager's statement. + if (waterPermille != 0 && bill.HeatingPermille != 0) + { + checks.Add(new BillCheck(BillCheckResult.Info, + $"Liegenschaft: Wasserkosten {N(bill.WaterCostsChf * 1000 / waterPermille)} CHF, Heizkosten {N(bill.HeatingCostsChf * 1000 / bill.HeatingPermille)} CHF")); + } + + AddPriceCheck(checks, "Wasser", "CHF/m³", WaterPrice(bill), previous is null ? null : WaterPrice(previous)); + AddPriceCheck(checks, "Heizung Warmwasser", "CHF/m³", WarmWaterHeatingPrice(bill), previous is null ? null : WarmWaterHeatingPrice(previous)); + AddPriceCheck(checks, "Heizung Räume", "CHF/MWh", RoomHeatingPrice(bill), previous is null ? null : RoomHeatingPrice(previous)); + + return checks; + } + + private static void AddMeterCheck(List checks, string name, decimal? reading, decimal consumption, decimal? previousReading) + { + if (reading is not decimal now) + { + return; + } + if (previousReading is decimal before) + { + var expected = before + consumption; + var ok = Math.Abs(expected - now) < MeterTolerance; + checks.Add(new BillCheck(Result(ok), + $"Zähler {name}: {M(before)} (Vorperiode) + {M(consumption)} = {M(expected)}" + (ok ? "" : $", Stand neu ist {M(now)}"))); + } + else + { + checks.Add(new BillCheck(BillCheckResult.Info, + $"Zähler {name}: Stand alt = {M(now)} − {M(consumption)} = {M(now - consumption)}")); + } + } + + private static void AddPriceCheck(List checks, string name, string unit, decimal? price, decimal? previousPrice) + { + if (price is not decimal now) + { + return; + } + if (previousPrice is decimal before && before != 0) + { + var change = now / before - 1; + checks.Add(new BillCheck(Result(Math.Abs(change) <= MaxPriceChange), + $"{name}: {N(now)} {unit} (Vorperiode {N(before)}, {change.ToString("+0%;−0%;0%", SwissNumbers)})")); + } + else + { + checks.Add(new BillCheck(BillCheckResult.Info, $"{name}: {N(now)} {unit}")); + } + } + + /// Water consumption costs (without base costs) per m³. + private static decimal? WaterPrice(WaterHeatingBill bill) + => bill.TotalM3 == 0 ? null : (bill.WarmWaterChf + bill.ColdWaterChf) / bill.TotalM3; + + private static decimal? WarmWaterHeatingPrice(WaterHeatingBill bill) + => bill.WarmWaterM3 == 0 ? null : bill.WarmWaterHeatingChf / bill.WarmWaterM3; + + private static decimal? RoomHeatingPrice(WaterHeatingBill bill) + => bill.HeatingMwh == 0 ? null : bill.RoomHeatingChf / bill.HeatingMwh; + + private static BillCheckResult Result(bool ok) => ok ? BillCheckResult.Ok : BillCheckResult.Warning; + + private static string N(decimal value) => value.ToString("#,0.00", SwissNumbers); + + private static string M(decimal value) => value.ToString("#,0.000", SwissNumbers); + + private static CultureInfo CreateSwissNumbers() + { + var culture = new CultureInfo("de-CH"); + culture.NumberFormat.NumberGroupSeparator = "'"; + return culture; + } + } +} diff --git a/Schaad.Accounting.Tests/WaterHeatingBillChecksTestShould.cs b/Schaad.Accounting.Tests/WaterHeatingBillChecksTestShould.cs new file mode 100644 index 0000000..7f77ecc --- /dev/null +++ b/Schaad.Accounting.Tests/WaterHeatingBillChecksTestShould.cs @@ -0,0 +1,151 @@ +using Schaad.Accounting.Models; +using Shouldly; + +namespace Schaad.Accounting.Tests; + +public class WaterHeatingBillChecksTestShould +{ + // Values of the 2024/25 bill: NeoVac per-mille shares and the own share from the property manager. + private static WaterHeatingBill Bill() + { + var bill = new WaterHeatingBill + { + Id = "b2025", + PeriodFrom = new DateOnly(2024, 7, 1), + PeriodTo = new DateOnly(2025, 6, 30), + WarmWaterM3 = 16.399m, + ColdWaterM3 = 51.464m, + HeatingMwh = 2.458m, + WaterBasePermille = 19.52m, + WaterConsumptionPermille = 68.50m, + HeatingPermille = 62.82m, + WarmWaterHeatingPermille = 12.66m, + WaterCostsChf = 304.30m, + HeatingCostsChf = 451.65m + }; + bill.CalculateCosts(); + return bill; + } + + [Fact] + public void PassWhenNeoVacPermilleMatchesPropertyManager() + { + var bill = Bill(); + bill.ManagerWaterPermille = 88.02m; + bill.ManagerHeatingPermille = 62.82m; + + var checks = WaterHeatingBillChecks.Check(bill, null); + + checks.ShouldContain(c => c.Result == BillCheckResult.Ok && c.Text.StartsWith("Wasser: NeoVac 19.52 + 68.50 = 88.02 ‰")); + checks.ShouldContain(c => c.Result == BillCheckResult.Ok && c.Text.StartsWith("Heizung: NeoVac 62.82 ‰")); + } + + [Fact] + public void WarnWhenNeoVacPermilleDiffersFromPropertyManager() + { + var bill = Bill(); + bill.ManagerWaterPermille = 88.20m; + + var checks = WaterHeatingBillChecks.Check(bill, null); + + checks.ShouldContain(c => c.Result == BillCheckResult.Warning && c.Text.StartsWith("Wasser: NeoVac")); + } + + [Fact] + public void LeaveOutPermilleChecksWhenPropertyManagerValuesAreMissing() + { + var checks = WaterHeatingBillChecks.Check(Bill(), null); + + checks.ShouldNotContain(c => c.Text.StartsWith("Wasser: NeoVac") || c.Text.StartsWith("Heizung: NeoVac")); + } + + [Fact] + public void WarnWhenWarmWaterHeatingPermilleIsAboveHeatingPermille() + { + var bill = Bill(); + bill.WarmWaterHeatingPermille = 70m; + + var checks = WaterHeatingBillChecks.Check(bill, null); + + checks.ShouldContain(c => c.Result == BillCheckResult.Warning && c.Text.StartsWith("Heizung WW 70.00 ‰")); + } + + [Fact] + public void PassWhenMeterContinuesFromPreviousBill() + { + var previous = Bill(); + previous.WarmWaterMeter = 134.151m; + var bill = Bill(); + bill.WarmWaterMeter = 150.550m; + + var checks = WaterHeatingBillChecks.Check(bill, previous); + + checks.ShouldContain(new BillCheck(BillCheckResult.Ok, "Zähler Warmwasser: 134.151 (Vorperiode) + 16.399 = 150.550")); + } + + [Fact] + public void WarnWhenMeterDoesNotContinueFromPreviousBill() + { + var previous = Bill(); + previous.ColdWaterMeter = 333.273m; + var bill = Bill(); + bill.ColdWaterMeter = 384.740m; + + var checks = WaterHeatingBillChecks.Check(bill, previous); + + checks.ShouldContain(new BillCheck(BillCheckResult.Warning, "Zähler Kaltwasser: 333.273 (Vorperiode) + 51.464 = 384.737, Stand neu ist 384.740")); + } + + [Fact] + public void ShowOldMeterReadingWhenThereIsNoPreviousReading() + { + var bill = Bill(); + bill.HeatingMeter = 21.575m; + + var checks = WaterHeatingBillChecks.Check(bill, null); + + checks.ShouldContain(new BillCheck(BillCheckResult.Info, "Zähler Wärme: Stand alt = 21.575 − 2.458 = 19.117")); + } + + [Fact] + public void ShowPropertyCostsDerivedFromOwnShare() + { + var checks = WaterHeatingBillChecks.Check(Bill(), null); + + checks.ShouldContain(new BillCheck(BillCheckResult.Info, "Liegenschaft: Wasserkosten 3'457.17 CHF, Heizkosten 7'189.59 CHF")); + } + + [Fact] + public void ShowPricesPerUnitWhenThereIsNoPreviousBill() + { + var checks = WaterHeatingBillChecks.Check(Bill(), null); + + checks.ShouldContain(new BillCheck(BillCheckResult.Info, "Wasser: 3.49 CHF/m³")); + checks.ShouldContain(new BillCheck(BillCheckResult.Info, "Heizung Warmwasser: 5.55 CHF/m³")); + checks.ShouldContain(new BillCheck(BillCheckResult.Info, "Heizung Räume: 146.72 CHF/MWh")); + } + + [Fact] + public void WarnWhenPriceChangesMoreThanAllowedAgainstPreviousBill() + { + var previous = Bill(); + previous.HeatingCostsChf = 300m; + previous.CalculateCosts(); + + var checks = WaterHeatingBillChecks.Check(Bill(), previous); + + checks.ShouldContain(c => c.Result == BillCheckResult.Warning && c.Text.StartsWith("Heizung Räume: 146.72 CHF/MWh (Vorperiode")); + checks.ShouldContain(c => c.Result == BillCheckResult.Ok && c.Text == "Wasser: 3.49 CHF/m³ (Vorperiode 3.49, 0%)"); + } + + [Fact] + public void PickBillThatEndedLastBeforeThisOneAsPrevious() + { + var bill = Bill(); + var older = new WaterHeatingBill { Id = "a", PeriodFrom = new DateOnly(2022, 7, 1), PeriodTo = new DateOnly(2023, 6, 30) }; + var last = new WaterHeatingBill { Id = "b", PeriodFrom = new DateOnly(2023, 7, 1), PeriodTo = new DateOnly(2024, 6, 30) }; + var later = new WaterHeatingBill { Id = "c", PeriodFrom = new DateOnly(2025, 7, 1), PeriodTo = new DateOnly(2026, 6, 30) }; + + WaterHeatingBillChecks.PreviousOf([later, older, bill, last], bill).ShouldBeSameAs(last); + } +} diff --git a/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor b/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor index a25a43c..2fa7254 100644 --- a/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor +++ b/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor @@ -1,5 +1,6 @@ @implements IDialogContentComponent @rendermode InteractiveServer +@using Schaad.Accounting.Models @@ -14,33 +15,40 @@ - - + + -
NeoVac – Ablesequittung (Verbrauch verrechnet)
+
NeoVac – Ablesequittung
- - + + + - + + +
NeoVac – Anteil (‰)
- - + + - - + + -
Verwaltung – Ihr Anteil (CHF)
+
Verwaltung – Ihr Anteil
- - + + + + + +
@@ -60,6 +68,12 @@ Total @M3(Content.TotalM3) · @Mwh(Content.HeatingMwh) · @Chf(Content.TotalChf)
+
Kontrolle
+ @foreach (var check in Checks) + { +
@CheckSymbol(check.Result) @check.Text
+ } + Woher kommen die Werte? (NeoVac-Abrechnung) @@ -78,7 +92,7 @@ @code { - private const string SectionStyle = "margin-top: 14px; font-size: 11px; font-weight: bold; color: #898781; text-transform: uppercase;"; + private const string SectionStyle = "margin-top: 14px; margin-bottom: 4px; font-size: 11px; font-weight: bold; color: #898781; text-transform: uppercase;"; // Shown in its own dialog (see ShowGuideAsync) instead of expanding inline: this dialog has a // fixed Height, and FluentDialogBody doesn't resize to fit growing content. @@ -86,4 +100,18 @@ @Beispiel-Abrechnung mit Markierungen, welcher Wert in welches Feld gehört; + + private static string CheckSymbol(BillCheckResult result) => result switch + { + BillCheckResult.Ok => "✓", + BillCheckResult.Warning => "⚠", + _ => "·" + }; + + private static string CheckColor(BillCheckResult result) => result switch + { + BillCheckResult.Ok => "#1a7f37", + BillCheckResult.Warning => "#c4314b", + _ => "#52514e" + }; } diff --git a/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor.cs b/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor.cs index 977c101..9142356 100644 --- a/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor.cs +++ b/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor.cs @@ -9,7 +9,8 @@ namespace Schaad.Accounting.UI.Components.Pages.Dialogs; /// /// NeoVac water and heating bill: consumption and per-mille shares from NeoVac, own costs from the -/// property manager's statement; the CHF parts are calculated (see ). +/// property manager's statement; the CHF parts are calculated (see ) +/// and checked (see ). /// public partial class WaterHeatingBillDialog : ComponentBase { @@ -21,6 +22,9 @@ public partial class WaterHeatingBillDialog : ComponentBase private DateTime? periodFrom; private DateTime? periodTo; + // The other bills, to find the previous one for the checks (meter readings, prices). + private List bills = []; + [CascadingParameter] public FluentDialog Dialog { get; set; } = null!; @@ -33,13 +37,31 @@ public partial class WaterHeatingBillDialog : ComponentBase [Inject] private IDialogService dialogService { get; set; } = null!; - protected override void OnInitialized() + protected override async Task OnInitializedAsync() { + bills = await waterHeatingBillRepository.GetWaterHeatingBillListAsync(); periodFrom = Content.PeriodFrom == default ? null : Content.PeriodFrom.ToDateTime(TimeOnly.MinValue); periodTo = Content.PeriodTo == default ? null : Content.PeriodTo.ToDateTime(TimeOnly.MinValue); editContext = new EditContext(Content); } + private IReadOnlyList Checks + => WaterHeatingBillChecks.Check(Content, WaterHeatingBillChecks.PreviousOf(bills, Content)); + + // Keeps the period on the bill up to date while editing, so the checks find the right + // previous bill. + private void SyncPeriod() + { + if (periodFrom is not null) + { + Content.PeriodFrom = DateOnly.FromDateTime(periodFrom.Value); + } + if (periodTo is not null) + { + Content.PeriodTo = DateOnly.FromDateTime(periodTo.Value); + } + } + private async Task SaveAsync() { if (periodFrom is null || periodTo is null) diff --git a/Schaad.Accounting.UI/Components/Pages/WaterHeating.razor.cs b/Schaad.Accounting.UI/Components/Pages/WaterHeating.razor.cs index b3cd5b0..08f00f4 100644 --- a/Schaad.Accounting.UI/Components/Pages/WaterHeating.razor.cs +++ b/Schaad.Accounting.UI/Components/Pages/WaterHeating.razor.cs @@ -110,8 +110,8 @@ public partial class WaterHeating : ComponentBase var data = new WaterHeatingBill(); var dialog = await dialogService.ShowDialogAsync(data, new DialogParameters() { - Width = "560px", - Height = "640px", + Width = "760px", + Height = "880px", Title = "Abrechnung hinzufügen", PreventDismissOnOverlayClick = true, PreventScroll = true, @@ -130,8 +130,8 @@ public partial class WaterHeating : ComponentBase var data = await waterHeatingBillRepository.GetWaterHeatingBillAsync(id); var dialog = await dialogService.ShowDialogAsync(data, new DialogParameters() { - Width = "560px", - Height = "640px", + Width = "760px", + Height = "880px", Title = "Abrechnung bearbeiten", PreventDismissOnOverlayClick = true, PreventScroll = true, diff --git a/Schaad.Accounting.UI/wwwroot/images/water-heating-bill-guide.svg b/Schaad.Accounting.UI/wwwroot/images/water-heating-bill-guide.svg index a4740aa..f1e4259 100644 --- a/Schaad.Accounting.UI/wwwroot/images/water-heating-bill-guide.svg +++ b/Schaad.Accounting.UI/wwwroot/images/water-heating-bill-guide.svg @@ -1,7 +1,7 @@ - + Beispiel-Abrechnung: Wo stehen die Werte? - + Beispiel: Wo stehen die Werte auf der Abrechnung? Platzhalterwerte – der Aufbau entspricht der NeoVac-Abrechnung und der Aufstellung der Verwaltung. @@ -27,7 +27,7 @@ 2.400 → Wärme (MWh) - Den Verbrauch übernehmen, nicht „Stand neu“ – das ist der Zählerstand. + „Stand neu“ ist der Zählerstand: optional in „Stand neu …“ für die Kontrolle, nicht als Verbrauch. NEOVAC – WASSERKOSTEN / WÄRMEKOSTEN, SPALTE „ANTEIL (‰)“ @@ -51,7 +51,7 @@ 12.00 → Heizung WW (‰) - VERWALTUNG – AUFSTELLUNG, IHR ANTEIL IN CHF + VERWALTUNG – AUFSTELLUNG, IHR ANTEIL Wasserkosten @@ -62,13 +62,18 @@ 450.00 → Heizkosten (CHF) - Die Promille der Verwaltung entsprechen Grund + Verbrauch bzw. dem Wärmekostenanteil. - + + Promille Wasser / Heizung + + 90.000 / 60.000 + → Wasser / Heizung (‰, optional) + Die Kontrolle vergleicht sie mit Grund + Verbrauch bzw. dem Wärmekostenanteil von NeoVac. + - Grundkosten 300.00 × 20 / 90 - 66.67 - Verbrauch 233.33, davon 15 von 60 m³ warm - Warmwasser 58.33 · Kaltwasser 175.00 - Heizung Warmwasser 450.00 × 12 / 60 - Heizung Warmwasser 90.00 · Räume 360.00 + Grundkosten 300.00 × 20 / 90 + 66.67 + Verbrauch 233.33, davon 15 von 60 m³ warm + Warmwasser 58.33 · Kaltwasser 175.00 + Heizung Warmwasser 450.00 × 12 / 60 + Heizung Warmwasser 90.00 · Räume 360.00