SBBMainzReports/Calculations/SBBMainzCalculations.cs - durch 0 teilen abgefangen
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user