This commit is contained in:
James Cole 2017-11-03 06:42:36 +01:00
parent 6a91ca0f9b
commit 0e34302898
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 8 additions and 3 deletions

View File

@ -144,7 +144,10 @@ return [
// repeat frequencies:
'repeat_freq_yearly' => 'yearly',
'repeat_freq_half-year' => 'every half-year',
'repeat_freq_quarterly' => 'quarterly',
'repeat_freq_monthly' => 'monthly',
'repeat_freq_weekly' => 'weekly',
'weekly' => 'weekly',
'quarterly' => 'quarterly',
'half-year' => 'every half year',

View File

@ -21,6 +21,8 @@
</td>
<td class="hidden-xs" data-value="{{ line.getMin }}" style="text-align: right;">{{ line.getMin|formatAmount }}</td>
<td class="hidden-xs" data-value="{{ line.getMax }}" style="text-align: right;">{{ line.getMax|formatAmount }}</td>
{# if bill is hit, show hit amount #}
{% if line.isHit %}
<td data-value="{{ line.getAmount }}" style="text-align: right;">
<a href="{{ route('transactions.show', line.getTransactionJournalId) }}">
@ -28,18 +30,18 @@
</a>
</td>
{% endif %}
{# if not but is active, show "not yet charged #}
{% if not line.isHit and line.isActive %}
<td data-value="0" class="bg-success">{{ 'notCharged'|_ }}</td>
{% endif %}
{% if not line.isActive %}
{% if not line.isActive and not line.isHit %}
<td data-value="-1">&nbsp;</td>
{% endif %}
<td data-value="{{ (line.getMax - line.getAmount) }}" style="text-align: right;" class="hidden-xs">
{% if line.isActive %}
{% if line.isHit %}
{{ (line.getMax + line.getAmount)|formatAmount }}
{% endif %}
</td>
</tr>
{% endfor %}