Sfoglia il codice sorgente

Teilung durch 0 korrigiert!

Arne Diekmann 8 anni fa
parent
commit
5db5c39868

+ 1 - 1
GreenTree.Nachtragsmanagement.Web/Models/Appendix/AppendixDataModel.cs

@@ -103,7 +103,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Models.Appendix
                 NegotiationValue = appendixEntity.NegotiationValue,
                 RelationOfferingToNegotiation =
                     appendixEntity.Value.HasValue && appendixEntity.NegotiationValue.HasValue
-                        ? appendixEntity.NegotiationValue / appendixEntity.Value
+                        ? appendixEntity.NegotiationValue / (appendixEntity.Value == 0 ? 1 : appendixEntity.Value)
                         : null,
                 ProtocolExists = appendixEntity.ProtocolExists,
                 OrderNumber = appendixEntity.OrderNumber,