Link to ledger in transaction detail page
This commit is contained in:
parent
66d5bb2fd3
commit
e719aa293f
@ -55,7 +55,7 @@
|
||||
{% set trn_url = '/transaction?' + {'tid': transaction.id, 'cash': 'on' if cash else ''}|urlencode %}
|
||||
<tr>
|
||||
<td>{{ posting.comment }}</td>
|
||||
<td>{{ (posting.account.name|e).__str__().replace(':', ':<wbr>')|safe }}</td>
|
||||
<td><a href="/transactions?{{ {'date_end': transaction.date.strftime('%Y-%m-%d'), 'date_beg': transaction.date.strftime('%Y-%m-%d'), 'account': posting.account.name}|urlencode }}">{{ (posting.account.name|e).__str__().replace(':', ':<wbr>')|safe }}</a></td>
|
||||
<td style="text-align: right;">{% if amount > 0 %}{{ amount|b }}{% endif %}</td>
|
||||
<td style="text-align: right;">{% if amount < 0 %}{{ -amount|b }}{% endif %}</td>
|
||||
</tr>
|
||||
|
@ -53,7 +53,7 @@
|
||||
{% set trn_url = '/transaction?' + {'tid': transaction.id, 'cash': 'on' if cash else ''}|urlencode %}
|
||||
<tr>
|
||||
<td>{{ posting.comment }}</td>
|
||||
<td>{{ (posting.account.name|e).__str__().replace(':', ':<wbr>')|safe }}</td>
|
||||
<td><a href="/transactions?{{ {'date_end': transaction.date.strftime('%Y-%m-%d'), 'date_beg': transaction.date.strftime('%Y-%m-%d'), 'account': posting.account.name}|urlencode }}">{{ (posting.account.name|e).__str__().replace(':', ':<wbr>')|safe }}</a></td>
|
||||
{% if posting.amount >= 0 %}
|
||||
{{ posting.amount|bt(True) }}
|
||||
<td colspan="3"></td>
|
||||
|
Reference in New Issue
Block a user