close #583 Fixed: Reports page currency issue

This commit is contained in:
cuneytsenturk
2018-11-02 17:50:27 +03:00
parent dd836a943b
commit 5da2276c84
5 changed files with 9 additions and 9 deletions

View File

@@ -23,7 +23,7 @@
<td class="col-sm-2">{{ $income_categories[$category_id] }}</td>
@foreach($category as $i => $item)
@php $gross['income'][$i] += $item['amount']; @endphp
<td class="col-sm-2 text-right">@money($item['amount'], $item['currency_code'], true)</td>
<td class="col-sm-2 text-right">@money($item['amount'], setting('general.default_currency'), true)</td>
@endforeach
</tr>
@endforeach
@@ -49,7 +49,7 @@
<td class="col-sm-2">{{ $expense_categories[$category_id] }}</td>
@foreach($category as $i => $item)
@php $gross['expense'][$i] += $item['amount']; @endphp
<td class="col-sm-2 text-right">@money($item['amount'], $item['currency_code'], true)</td>
<td class="col-sm-2 text-right">@money($item['amount'], setting('general.default_currency'), true)</td>
@endforeach
</tr>
@endforeach