|
|
@@ -1208,11 +1208,19 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
if (totalRelationOfferingToDeviationsSum == 0 || totalRelationOfferingToDeviationsCount == 0)
|
|
|
e.TotalValue = 0;
|
|
|
else
|
|
|
- e.TotalValue = totalRelationOfferingToDeviationsSum / totalRelationOfferingToDeviationsCount;
|
|
|
+ e.TotalValue =
|
|
|
+ totalRelationOfferingToDeviationsSum /
|
|
|
+ (totalRelationOfferingToDeviationsCount == 0
|
|
|
+ ? 1
|
|
|
+ : totalRelationOfferingToDeviationsCount);
|
|
|
}
|
|
|
|
|
|
if (summaryItem.FieldName == "RelationOfferingToNegotiation")
|
|
|
- e.TotalValue = totalNegotiationValueSum / totalPercentageValueSum;
|
|
|
+ e.TotalValue =
|
|
|
+ totalNegotiationValueSum /
|
|
|
+ (totalPercentageValueSum == 0
|
|
|
+ ? 1
|
|
|
+ : totalPercentageValueSum);
|
|
|
}
|
|
|
};
|
|
|
|