浏览代码

Teilung durch 0 korrigiert!

Arne Diekmann 8 年之前
父节点
当前提交
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,
                 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,