diff --git a/drcr/templates/transactions.html b/drcr/templates/transactions.html
index 82bd7c2..acdc1b6 100644
--- a/drcr/templates/transactions.html
+++ b/drcr/templates/transactions.html
@@ -15,52 +15,73 @@
along with this program. If not, see
Date | -Description | -Related Account | -Dr | -Cr | -Balance | +Date | +Description | +Related Account | +Dr | +Cr | +Balance | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ transaction.dt.strftime('%Y-%m-%d') }} | -+ | |||||||||||
{{ transaction.dt.strftime('%Y-%m-%d') }} | +{{ transaction.description }} - {% if transaction.id %}{% endif %} + {% if transaction.id %} + + + + {% endif %} | -{% for p in transaction.postings if p.account != account %}{{ p.account }}{% endfor %} | -{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }} | -{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }} | -{{ (running_totals[posting]|abs).format() }} | -{{ 'Dr' if running_totals[posting].quantity >= 0 else 'Cr' }} | +{% for p in transaction.postings if p.account != account %}{{ p.account }}{% endfor %} | +{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }} | +{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }} | +{{ (running_totals[posting]|abs).format() }} | +{{ 'Dr' if running_totals[posting].quantity >= 0 else 'Cr' }} | |
{{ transaction.dt.strftime('%Y-%m-%d') }} | -+ | |||||||||||
{{ transaction.dt.strftime('%Y-%m-%d') }} | +{{ transaction.description }} - {% if transaction.id %}{% endif %} + {% if transaction.id %} + + + + {% endif %} | @@ -70,21 +91,21 @@ {% for posting in transaction.postings if posting.account == account %} | ||||||||||
- | {{ 'Dr' if posting.quantity >= 0 else 'Cr' }} | -{{ account }} | -{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }} | -{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }} | -{{ (running_totals[posting]|abs).format() }} | -{{ 'Dr' if running_totals[posting].quantity >= 0 else 'Cr' }} | +{{ 'Dr' if posting.quantity >= 0 else 'Cr' }} | +{{ account }} | +{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }} | +{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }} | +{{ (running_totals[posting]|abs).format() }} | +{{ 'Dr' if running_totals[posting].quantity >= 0 else 'Cr' }} |
- | {{ 'Dr' if posting.quantity >= 0 else 'Cr' }} | -{{ posting.account }} | -{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }} | -{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }} | +{{ 'Dr' if posting.quantity >= 0 else 'Cr' }} | +{{ posting.account }} | +{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }} | +{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }} |