Arne Diekmann 8 лет назад
Родитель
Сommit
5db5c39868
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      GreenTree.Nachtragsmanagement.Web/Models/Appendix/AppendixDataModel.cs

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

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