|
@@ -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")}%";
|
|
|
}
|
|
|
}
|