Browse Source

团组预算/实际成本 -->实际比预算超出

LEIYI 1 month ago
parent
commit
c73cb3f6bc

+ 5 - 5
OASystem/OASystem.Domain/ViewModels/Financial/Fin_DailyFeePaymentView.cs

@@ -1500,11 +1500,11 @@ namespace OASystem.Domain.ViewModels.Financial
         {
             get
             {
-                if (BudgetAmount == 0)
-                {
-                    return $"0%";
-                }
-                var percentage = (RealityAmount / BudgetAmount) * 100;
+                if (BudgetAmount == 0) return $"0%";
+
+                if (ExcessAmount<=0) return $"0%";
+
+                var percentage = (ExcessAmount / BudgetAmount) * 100;
                 return $"{percentage.ToString("0.00")}%";
             }
         }