Browse Source

Fixed transaction donation bar showing full when actually empty

tags/3.0.0
Teknikode 3 years ago
parent
commit
afe9a7727a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Teknik/Areas/Status/Views/Status/Transactions.cshtml

+ 1
- 1
Teknik/Areas/Status/Views/Status/Transactions.cshtml View File

@@ -5,7 +5,7 @@
@{
decimal totalBills = Model.CurrentMonthBills;
decimal totalIncome = Model.CurrentMonthIncome;
int incomePercentage = 100;
int incomePercentage = 0;
if (totalIncome != 0 && totalBills != 0)
{
incomePercentage = (int)Math.Min(Math.Floor((totalIncome / totalBills) * 100), 100);

Loading…
Cancel
Save