From 56959cda227d71f153d51c9fc427e5d81d96917c Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sun, 17 May 2020 15:15:19 +1000 Subject: [PATCH] Show also this account's posting comment in transaction list --- ledger_pyreport/jinja2/transactions.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ledger_pyreport/jinja2/transactions.html b/ledger_pyreport/jinja2/transactions.html index 1eb332d..bfc9708 100644 --- a/ledger_pyreport/jinja2/transactions.html +++ b/ledger_pyreport/jinja2/transactions.html @@ -83,6 +83,20 @@ {% endif %} + + {# This account's comment #} + {% if account %} + {% for posting in transaction.postings if posting.account == account and posting.comment %} + + + {{ posting.comment }} + + + + + + {% endfor %} + {% endif %} {% endif %} {% for posting in transaction.postings if posting.account != account %}