mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Simplify bill overview.
This commit is contained in:
@@ -20,10 +20,15 @@
|
||||
</td>
|
||||
{% for account in report.accounts %}
|
||||
{% if budget.spent[account.id] %}
|
||||
<td style="text-align: right;">
|
||||
{{ formatAmountBySymbol(budget.spent[account.id].spent, budget.spent[account.id].currency_symbol, budget.spent[account.id].currency_decimal_places) }}
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
{{ formatAmountBySymbol(budget.spent[account.id].spent, budget.spent[account.id].currency_symbol, budget.spent[account.id].currency_decimal_places) }}
|
||||
</td>
|
||||
{% else %}
|
||||
{% if report.accounts[account.id].sum != 0 %}
|
||||
<td> </td>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
<td style="text-align: right;">
|
||||
{% for sum in report.sums[budget.budget_id] %}
|
||||
|
||||
@@ -1,19 +1,51 @@
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ 'bills'|_ }}</h3>
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-hover sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-defaultsign="az">{{ trans('form.name') }}</th>
|
||||
<th data-defaultsign="_19" class="hidden-xs" style="text-align: right;">{{ trans('form.amount_min') }}</th>
|
||||
<th data-defaultsign="_19" class="hidden-xs" style="text-align: right;">{{ trans('form.amount_max') }}</th>
|
||||
<th data-defaultsign="_19" style="text-align: right;">{{ trans('form.amount') }}</th>
|
||||
<th data-defaultsign="_19" class="hidden-xs" style="text-align: right;">{{ trans('form.under') }}</th>
|
||||
<th data-defaultsign="_19">{{ trans('form.expected_on') }}</th>
|
||||
<th data-defaultsign="_19" style="text-align: right;">{{ trans('form.paid') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for bill in report.bills %}
|
||||
{% if bill.expected_dates|length > 0 and bill.paid_moments|length > 0 and bill.active %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ route('bills.show',bill.id) }}">{{ bill.name }}</a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
{{ formatAmountBySymbol(bill.amount_min, bill.currency_symbol, bill.currency_decimal_places) }}
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
{{ formatAmountBySymbol(bill.amount_max, bill.currency_symbol, bill.currency_decimal_places) }}
|
||||
</td>
|
||||
<td>
|
||||
{% for date in bill.expected_dates %}
|
||||
{{ date.formatLocalized(monthAndDayFormat) }}<br/>
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
{% set hitCount = 0 %}
|
||||
{% for journals in bill.paid_moments %}
|
||||
{% for journal in journals %}
|
||||
{% set hitCount = hitCount+1 %}
|
||||
<a title="{{ journal.date.formatLocalized(monthAndDayFormat) }}"
|
||||
href="{{ route('transactions.show', [journal.transaction_group_id]) }}">{{ journal.description }}</a>,
|
||||
{{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
|
||||
<br/>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% if hitCount == 0 %}
|
||||
<em>{{ 'notCharged'|_ }}</em>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% for line in bills.getBills %}
|
||||
<tr>
|
||||
<td data-value="{{ line.getBill.name }}">
|
||||
@@ -50,5 +82,3 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user