mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-08 23:24:07 -06:00
Expanded the summary (related to #23).
This commit is contained in:
parent
e405d06f23
commit
01de230785
@ -10,7 +10,7 @@
|
|||||||
<th id="empty2">B</th>
|
<th id="empty2">B</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<?php $total = 0; ?>
|
<?php $expenses = 0;$incomes = 0;$transfers = 0; ?>
|
||||||
@foreach($journals as $journal)
|
@foreach($journals as $journal)
|
||||||
@if(isset($journal->transactions[0]) && isset($journal->transactions[1]))
|
@if(isset($journal->transactions[0]) && isset($journal->transactions[1]))
|
||||||
<tr
|
<tr
|
||||||
@ -53,14 +53,15 @@
|
|||||||
<td>
|
<td>
|
||||||
@if($journal->transactiontype->type == 'Withdrawal')
|
@if($journal->transactiontype->type == 'Withdrawal')
|
||||||
<span class="text-danger">{{mf($journal->transactions[1]->amount,false)}}</span>
|
<span class="text-danger">{{mf($journal->transactions[1]->amount,false)}}</span>
|
||||||
<?php $total -= $journal->transactions[1]->amount;?>
|
<?php $expenses -= $journal->transactions[1]->amount;?>
|
||||||
@endif
|
@endif
|
||||||
@if($journal->transactiontype->type == 'Deposit')
|
@if($journal->transactiontype->type == 'Deposit')
|
||||||
<span class="text-success">{{mf($journal->transactions[1]->amount,false)}}</span>
|
<span class="text-success">{{mf($journal->transactions[1]->amount,false)}}</span>
|
||||||
|
<?php $incomes += $journal->transactions[1]->amount;?>
|
||||||
@endif
|
@endif
|
||||||
@if($journal->transactiontype->type == 'Transfer')
|
@if($journal->transactiontype->type == 'Transfer')
|
||||||
<span class="text-info">{{mf($journal->transactions[1]->amount,false)}}</span>
|
<span class="text-info">{{mf($journal->transactions[1]->amount,false)}}</span>
|
||||||
|
<?php $transfers += $journal->transactions[1]->amount;?>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@ -96,8 +97,16 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
@if(isset($sum) && $sum == true)
|
@if(isset($sum) && $sum == true)
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="4">Sum:</td>
|
<td colspan="4">Expenses:</td>
|
||||||
<td colspan="4">{{mf($total)}}</td>
|
<td colspan="4">{{mf($expenses)}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">Incomes:</td>
|
||||||
|
<td colspan="4">{{mf($incomes)}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">Transfers:</td>
|
||||||
|
<td colspan="4" class="text-info">{{mf($transfers,false)}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user