Browse Source

Fixed donation target bar always showing 100

master
Teknikode 3 years ago
parent
commit
dcbb9d91db
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

@@ -8,7 +8,7 @@
int incomePercentage = 100;
if (totalIncome != 0 && totalBills != 0)
{
incomePercentage = (int)Math.Max((Math.Floor(totalBills / totalIncome) * 100), 100);
incomePercentage = (int)Math.Min((Math.Floor(totalBills / totalIncome) * 100), 100);
}

string processStyle = "progress-bar progress-bar-success";

Loading…
Cancel
Save