mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Removed old code.
This commit is contained in:
@@ -150,24 +150,4 @@ class BalanceLine
|
|||||||
{
|
{
|
||||||
$this->balanceEntries = $balanceEntries;
|
$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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -14,7 +14,6 @@
|
|||||||
<th>
|
<th>
|
||||||
{{ 'leftInBudget'|_ }}
|
{{ 'leftInBudget'|_ }}
|
||||||
</th>
|
</th>
|
||||||
<th>{{ 'sum'|_ }}</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -45,9 +44,6 @@
|
|||||||
<td>
|
<td>
|
||||||
{{ balanceLine.leftOfRepetition|formatAmount }}
|
{{ balanceLine.leftOfRepetition|formatAmount }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{{ balanceLine.sumOfLeft|formatAmount }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Reference in New Issue
Block a user