From 4848b33dc1e4b114fffd53e8d588bba5facd72f9 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 10 Feb 2026 14:09:51 +0100 Subject: [PATCH] SBBMainzReports/Calculations/SBBMainzCalculations.cs - durch 0 teilen abgefangen --- .../SBBMainzReports/Calculations/SBBMainzCalculations.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ReportImp/SBBMainzReports/Calculations/SBBMainzCalculations.cs b/ReportImp/SBBMainzReports/Calculations/SBBMainzCalculations.cs index d3c89dedf..e28772329 100644 --- a/ReportImp/SBBMainzReports/Calculations/SBBMainzCalculations.cs +++ b/ReportImp/SBBMainzReports/Calculations/SBBMainzCalculations.cs @@ -418,7 +418,10 @@ namespace BeWo.SBBMainzReports.Calculations break; } - approvedBEPerDay = (anzahlWochenGesamt * bewilligtProWoche)/anzahlTageGesamt; + if (anzahlTageGesamt != 0) + { + approvedBEPerDay = (anzahlWochenGesamt * bewilligtProWoche) / anzahlTageGesamt; + } } var serviceUnit = costRatePeriods.GetCostRatePeriodForDate(CostRatePeriodType.MinutesPerServiceUnit, end);