Browse Source

Fixed percentage of progress bar

pull/50/head
Teknikode 6 years ago
parent
commit
3c6f766ad6
  1. 2
      Teknik/Areas/Status/Views/Status/Transactions.cshtml

2
Teknik/Areas/Status/Views/Status/Transactions.cshtml

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
int incomePercentage = 100;
if (totalIncome != 0 && totalBills != 0)
{
incomePercentage = (int)Math.Min((Math.Floor(totalBills / totalIncome) * 100), 100);
incomePercentage = (int)Math.Min((Math.Floor(totalIncome / totalBills) * 100), 100);
}
string processStyle = "progress-bar progress-bar-success";

Loading…
Cancel
Save