Show posting comment in "Transactions with Commodity Detail" report

This commit is contained in:
RunasSudo 2021-01-24 02:23:04 +11:00
parent 09f2c3961d
commit 5eb7209b95
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 15 additions and 0 deletions

View File

@ -86,6 +86,21 @@
</tr>
{% endfor %}
{% set ns.balance = ns.balance.clean() %}
{# This account's comment #}
{% for posting in transaction.postings if posting.account == account and posting.comment %}
<tr>
<td></td>
<td style="padding-left: 0.75em;">{{ posting.comment }}</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
{% endfor %}
{% endfor %}
{% set nextlink = '/transactions?' + {'date_beg': (date_end + timedelta(days=1)).strftime('%Y-%m-%d'), 'date_end': date_end.replace(year=date_end.year+1).strftime('%Y-%m-%d'), 'account': account.name, 'cash': 'on' if cash else ''}|urlencode %}