Fix transaction list on income statement
This commit is contained in:
parent
887751f439
commit
6df8b58a89
@ -29,7 +29,7 @@
|
||||
</td>
|
||||
{% for pandl in pandls %}
|
||||
{% 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 %}
|
||||
</tr>
|
||||
|
||||
|
Reference in New Issue
Block a user