Removed old code.

This commit is contained in:
James Cole 2015-12-02 09:01:40 +01:00
parent d124de51db
commit 04f71b3b43
2 changed files with 0 additions and 24 deletions

View File

@ -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;
}
}

View File

@ -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>