Skip to content

Firefly III: a personal finances manager

Removed old code.

James Cole04f71b3b4319
diff --git a/app/Helpers/Collection/BalanceLine.php b/app/Helpers/Collection/BalanceLine.php
index 28a64d4c5c..50b1d6313a 100644
--- a/app/Helpers/Collection/BalanceLine.php
+++ b/app/Helpers/Collection/BalanceLine.php
@@ -150,24 +150,4 @@ class BalanceLine
{
$this->balanceEntries = $balanceEntries;
}
-
- /**
- * If the BalanceEntries for a BalanceLine have a "left" value, the amount
- * of money left in the entire BalanceLine is returned here:
- *
- * @return float
- */
- public function sumOfLeft()
- {
- $sum = '0';
- bcscale(2);
- /** @var BalanceEntry $balanceEntry */
- foreach ($this->getBalanceEntries() as $balanceEntry) {
- $sum = bcadd($sum, $balanceEntry->getSpent());
- }
-
- return $sum;
- }
-
-
}
diff --git a/resources/twig/partials/reports/balance.twig b/resources/twig/partials/reports/balance.twig
index 6dd4da9c49..74cf4804a9 100644
--- a/resources/twig/partials/reports/balance.twig
+++ b/resources/twig/partials/reports/balance.twig
@@ -14,7 +14,6 @@
<th>
{{ 'leftInBudget'|_ }}
</th>
- <th>{{ 'sum'|_ }}</th>
</tr>
</thead>
<tbody>
@@ -45,9 +44,6 @@
<td>
{{ balanceLine.leftOfRepetition|formatAmount }}
</td>
- <td>
- {{ balanceLine.sumOfLeft|formatAmount }}
- </td>
</tr>
{% endfor %}
</tbody>