From 858ba0254a5ebef7743b0541703148b00f544c08 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Mon, 30 Mar 2020 20:02:36 +1100 Subject: [PATCH] Show Dr/Cr on comparative trial balance instead of positive/negative --- ledger_pyreport/jinja2/trial_multiple.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger_pyreport/jinja2/trial_multiple.html b/ledger_pyreport/jinja2/trial_multiple.html index 103d9d0..a55341c 100644 --- a/ledger_pyreport/jinja2/trial_multiple.html +++ b/ledger_pyreport/jinja2/trial_multiple.html @@ -34,7 +34,7 @@ {{ account.name }} {% for trial_balance in trial_balances %} {% set balance = trial_balance.get_balance(account).exchange(report_currency, True) %} - {% if not balance.near_zero %}{{ balance|a }}{% endif %} + {% if not balance.near_zero %}{{ balance|abs|b }} {% if balance >= 0 %}Dr{% else %}Cr{% endif %}{% endif %} {% endfor %} {% endfor %}