SBBMainzReports/Calculations/SBBMainzCalculations.cs - durch 0 teilen abgefangen

This commit is contained in:
2026-02-10 14:09:51 +01:00
parent 619481858c
commit 4848b33dc1

View File

@@ -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);