Also show closing balance in report currency in Account Transactions with commodities

This commit is contained in:
RunasSudo 2020-03-30 19:20:28 +11:00
parent d3cd7eebaa
commit 05d503e2f4
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -90,5 +90,16 @@
<td>{% if amount >= 0 %}Dr{% else %}Cr{% endif %}</td>
</tr>
{% endfor %}
<tr class="total">
<td></td>
<td></td>
<td></td>
<td></td>
{% set closing_balance = closing_balance.exchange(report_currency, True) %}
<td style="text-align: right;"><span title="{{ closing_balance.tostr(False) }}">{{ closing_balance|abs|bc }}</span></td>
<td></td>
<td>{% if closing_balance >= 0 %}Dr{% else %}Cr{% endif %}</td>
</tr>
</table>
{% endblock %}