mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 20:11:22 +00:00
Fix test coverage.
This commit is contained in:
@@ -25,9 +25,12 @@
|
||||
<tbody>
|
||||
{# Make sum: #}
|
||||
{% set sum = 0 %}
|
||||
{% set symbol = '' %}
|
||||
{% set decimal_places =2 %}
|
||||
{% for transaction in journals %}
|
||||
{# add to sum #}
|
||||
|
||||
{% set symbol = transaction.currency_symbol %}
|
||||
{% set decimal_places = transaction.currency_decimal_places %}
|
||||
<tr class="drag" data-date="{{ transaction.date.format('Y-m-d') }}" data-id="{{ transaction.journal_id }}">
|
||||
<td class="hidden-xs">
|
||||
{% if transaction.transaction_type_type == 'Withdrawal' %}
|
||||
@@ -134,8 +137,9 @@
|
||||
<tr>
|
||||
<td colspan="2" style="text-align: right;"><em>{{ 'sum'|_ }}:</em></td>
|
||||
<td>
|
||||
{# TODO avoid using formatAmount #}
|
||||
{{ sum|formatAmount }}
|
||||
{% if sum != 0 %}
|
||||
{{ formatAmountBySymbol(sum, symbol, decimal_places) }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
@@ -9,11 +9,6 @@
|
||||
<div class="modal-body">
|
||||
{% set hideBudget = true %}
|
||||
{% include 'popup/list/journals' %}
|
||||
<p>
|
||||
<small class="text-warning">
|
||||
{{ 'sum_in_default_currency'|_ }}
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>
|
||||
|
||||
Reference in New Issue
Block a user