close #583 Fixed: Reports page currency issue
This commit is contained in:
parent
dd836a943b
commit
5da2276c84
@ -19,7 +19,7 @@
|
||||
<tr>
|
||||
<td>{{ $categories[$category_id] }}</td>
|
||||
@foreach($category as $item)
|
||||
<td class="text-right">@money($item['amount'], $item['currency_code'], true)</td>
|
||||
<td class="text-right">@money($item['amount'], setting('general.default_currency'), true)</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
@ -25,9 +25,9 @@
|
||||
@endif
|
||||
@foreach($category as $item)
|
||||
@if($type == 'income')
|
||||
<td class="text-right">@money($item['amount'], $item['currency_code'], true)</td>
|
||||
<td class="text-right">@money($item['amount'], setting('general.default_currency'), true)</td>
|
||||
@else
|
||||
<td class="text-right">@money(-$item['amount'], $item['currency_code'], true)</td>
|
||||
<td class="text-right">@money(-$item['amount'], setting('general.default_currency'), true)</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<tr>
|
||||
<td>{{ $categories[$category_id] }}</td>
|
||||
@foreach($category as $item)
|
||||
<td class="text-right">@money($item['amount'], $item['currency_code'], true)</td>
|
||||
<td class="text-right">@money($item['amount'], setting('general.default_currency'), true)</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
@ -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
|
||||
|
@ -22,13 +22,13 @@
|
||||
<tr>
|
||||
<td style="width: 120px;">{{ trans_choice('general.incomes', 2) }}</td>
|
||||
@foreach($incomes[$tax_name] as $tax_date)
|
||||
<td class="text-right">@money($tax_date['amount'], $tax_date['currency_code'], true)</td>
|
||||
<td class="text-right">@money($tax_date['amount'], setting('general.default_currency'), true)</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 120px;">{{ trans_choice('general.expenses', 2) }}</td>
|
||||
@foreach($expenses[$tax_name] as $tax_date)
|
||||
<td class="text-right">@money($tax_date['amount'], $tax_date['currency_code'], true)</td>
|
||||
<td class="text-right">@money($tax_date['amount'], setting('general.default_currency'), true)</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -36,7 +36,7 @@
|
||||
<tr>
|
||||
<th style="width: 120px;">{{ trans('reports.net') }}</th>
|
||||
@foreach($totals[$tax_name] as $tax_date)
|
||||
<th class="text-right">@money($tax_date['amount'], $tax_date['currency_code'], true)</th>
|
||||
<th class="text-right">@money($tax_date['amount'], setting('general.default_currency'), true)</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
Loading…
x
Reference in New Issue
Block a user