This should fix most amounts for #511

This commit is contained in:
James Cole
2017-01-02 19:27:27 +01:00
parent 8aa2e3d2f5
commit e323f5a2d5
4 changed files with 21 additions and 9 deletions

View File

@@ -10,7 +10,8 @@
<th data-defaultsign="_19">{{ trans('list.currentBalance') }}</th>
<th class="hidden-sm hidden-xs">{{ trans('list.active') }}</th>
<th data-defaultsign="month" class="hidden-sm hidden-xs">{{ trans('list.lastActivity') }}</th>
<th data-defaultsign="_19" class="hidden-sm hidden-xs">{{ trans('list.balanceDiff', {'start' : Session.get('start').formatLocalized(monthAndDayFormat),'end' : Session.get('end').formatLocalized(monthAndDayFormat)}) }}</th>
<th data-defaultsign="_19"
class="hidden-sm hidden-xs">{{ trans('list.balanceDiff', {'start' : Session.get('start').formatLocalized(monthAndDayFormat),'end' : Session.get('end').formatLocalized(monthAndDayFormat)}) }}</th>
</tr>
</thead>
<tbody>
@@ -33,7 +34,11 @@
</td>
{% endif %}
<td class="hidden-sm hidden-xs">{{ account.iban }}</td>
<td data-value="{{ account.endBalance }}">{{ account.endBalance|formatAmount }}</td>
<td data-value="{{ account.endBalance }}" style="text-align: right;">
<span style="margin-right:5px;">
{{ account.endBalance|formatAmount }}
</span>
</td>
<td class="hidden-sm hidden-xs" data-value="{{ account.active }}">
{% if account.active %}
<i class="fa fa-fw fa-check"></i>
@@ -50,8 +55,10 @@
<em>{{ 'never'|_ }}</em>
</td>
{% endif %}
<td class="hidden-sm hidden-xs" data-value="{{ account.difference }}">
<td class="hidden-sm hidden-xs" data-value="{{ account.difference }}" style="text-align: right;">
<span style="margin-right:5px;">
{{ (account.difference)|formatAmount }}
</span>
</td>
</tr>

View File

@@ -29,11 +29,15 @@
<span class="label label-info">{{ match }}</span>
{% endfor %}
</td>
<td data-value="{{ entry.amount_min }}">
<td data-value="{{ entry.amount_min }}" style="text-align: right;">
<span style="margin-right:5px;">
{{ entry.amount_min|formatAmount }}
</span>
</td>
<td data-value="{{ entry.amount_max }}">
<td data-value="{{ entry.amount_max }}" style="text-align: right;">
<span style="margin-right:5px;">
{{ entry.amount_max|formatAmount }}
</span>
</td>
{% if entry.paidDates.count() == 0 and entry.payDates.count() == 0 and entry.active %}

View File

@@ -1,6 +1,6 @@
{{ journals.render|raw }}
<table class="table table-hover table-compressed {% if sorting %}sortable-table{% endif %}">
<table class="table table-hover table-condensed {% if sorting %}sortable-table{% endif %}">
<thead>
<tr class="ignore">
<th class="hidden-xs no_select_boxes" colspan="2">&nbsp;</th>
@@ -62,12 +62,13 @@
{% endif %}
</td>
<td>
<td style="text-align: right;">
<span style="margin-right:5px;">
<!-- format amount of transaction -->
{{ formatByCode(transaction.transaction_currency_code, transaction.transaction_amount) }}
<!-- and then amount of journal itself. -->
{{ optionalJournalAmount(transaction.journal_id, transaction.transaction_amount, transaction.transaction_currency_code, transaction.transaction_type_type) }}
</span>
</td>
<td class="hidden-sm hidden-xs">

View File

@@ -22,7 +22,7 @@
{% endif %}
</td>
<td>
<td style="text-align: right;">
{% if event.amount < 0 %}
<span class="text-danger">{{ trans('firefly.removed_amount', {amount: (event.amount)|formatAmountPlain})|raw }}</span>
{% else %}