@@ -91,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' }} |
{% endfor %}
{% for posting in transaction.postings if posting.account != account %}
|
- {{ '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 '' }} |
|
|
diff --git a/drcr/templates/transactions_commodity_detail.html b/drcr/templates/transactions_commodity_detail.html
index 67e0d07..2f2323d 100644
--- a/drcr/templates/transactions_commodity_detail.html
+++ b/drcr/templates/transactions_commodity_detail.html
@@ -38,19 +38,19 @@