mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Code for #1324
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
{% for entry in bills %}
|
||||
{% if entry.active %}
|
||||
{% set count = count + 1 %}
|
||||
{% set sum_min = sum_min + entry.amount_min %}
|
||||
{% set sum_max = sum_min + entry.amount_max %}
|
||||
{% set sum_min = sum_min + entry.amount_min %}
|
||||
{% set sum_max = sum_min + entry.amount_max %}
|
||||
{% set expected_total = expected_total + ((entry.amount_min + entry.amount_max) / 2) %}
|
||||
{% endif %}
|
||||
<tr>
|
||||
@@ -43,7 +43,13 @@
|
||||
|
||||
</td>
|
||||
<td class="hidden-sm hidden-md hidden-xs">
|
||||
(rules)
|
||||
{% if entry.rules|length > 0 %}
|
||||
<ul class="list-unstyled">
|
||||
{% for rule in entry.rules %}
|
||||
<li><a href="{{ route('rules.edit', [rule.id]) }}">{{ rule.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td data-value="{{ entry.amount_min }}" style="text-align: right;">
|
||||
<span style="margin-right:5px;" title="{{ entry.amount_min|formatAmountPlain }} - {{ entry.amount_max|formatAmountPlain }}">
|
||||
@@ -127,7 +133,7 @@
|
||||
<td colspan="5"> </td>
|
||||
</tr>
|
||||
|
||||
{# calculate total#}
|
||||
{# calculate total#}
|
||||
{% if count > 0 %}
|
||||
{% set avg_min = (sum_min / count) %}
|
||||
{% set avg_max = (sum_max / count) %}
|
||||
|
||||
Reference in New Issue
Block a user