Fix transaction list on income statement

This commit is contained in:
RunasSudo 2020-04-15 13:42:34 +10:00
parent 887751f439
commit 6df8b58a89
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -29,7 +29,7 @@
</td> </td>
{% for pandl in pandls %} {% for pandl in pandls %}
{% set amount = (-pandl.get_balance(account) if invert else pandl.get_balance(account)).exchange(report_commodity, True) %} {% set amount = (-pandl.get_balance(account) if invert else pandl.get_balance(account)).exchange(report_commodity, True) %}
<td>{% if not amount.near_zero %}{{ amount|a('/transactions?' + {'date': pandl.date.strftime('%Y-%m-%d'), 'pstart': pandl.pstart.strftime('%Y-%m-%d'), 'account': account.name, 'cash': 'on' if cash else ''}|urlencode) }}{% endif %}</td> <td>{% if not amount.near_zero %}{{ amount|a('/transactions?' + {'date_end': pandl.date.strftime('%Y-%m-%d'), 'date_beg': pandl.pstart.strftime('%Y-%m-%d'), 'account': account.name, 'cash': 'on' if cash else ''}|urlencode) }}{% endif %}</td>
{% endfor %} {% endfor %}
</tr> </tr>