diff --git a/ledger_pyreport/jinja2/balance.html b/ledger_pyreport/jinja2/balance.html index f6a65dc..05ee774 100644 --- a/ledger_pyreport/jinja2/balance.html +++ b/ledger_pyreport/jinja2/balance.html @@ -20,14 +20,30 @@ {% if balance_sheets|length == 1 %} - {{ account.bits[-1] }} + {% if account.name == config['current_year_earnings'] %} + + {% else %} + + {% endif %} + {{ account.bits[-1] }} + {% else %} {{ account.bits[-1] }} {% endif %} {% for balance_sheet in balance_sheets %} {% set amount = (-balance_sheet.get_balance(account) if invert else balance_sheet.get_balance(account)).exchange(report_currency, True) %} - {% if amount != 0 %}{{ amount|a }}{% endif %} + + {% if amount != 0 %} + {% if account.name == config['current_year_earnings'] %} + + {% else %} + + {% endif %} + {{ amount|a }} + + {% endif %} + {% endfor %}