Correct link to P&L on comparative balance sheet
This commit is contained in:
RunasSudo 2020-07-17 11:32:33 +10:00
parent e1e28060e8
commit 0a8e982bf9
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -40,7 +40,7 @@
<td> <td>
{% if not amount.near_zero %} {% if not amount.near_zero %}
{% if account.name == config['current_year_earnings'] %} {% if account.name == config['current_year_earnings'] %}
{{ amount|a('/pandl?' + {'date_end': balance_sheet.date.strftime('%Y-%m-%d'), 'date_beg': balance_sheets[0].pstart.strftime('%Y-%m-%d'), 'compare': '0', 'cash': 'on' if cash else '', 'scope': 'both'}|urlencode) }} {{ amount|a('/pandl?' + {'date_end': balance_sheet.date.strftime('%Y-%m-%d'), 'date_beg': balance_sheet.pstart.strftime('%Y-%m-%d'), 'compare': '0', 'cash': 'on' if cash else '', 'scope': 'both'}|urlencode) }}
{% elif account.name == config['current_year_oci'] %} {% elif account.name == config['current_year_oci'] %}
{{ amount|a('/pandl?' + {'date_end': balance_sheet.date.strftime('%Y-%m-%d'), 'date_beg': balance_sheet.pstart.strftime('%Y-%m-%d'), 'compare': '0', 'cash': 'on' if cash else '', 'scope': 'oci'}|urlencode) }} {{ amount|a('/pandl?' + {'date_end': balance_sheet.date.strftime('%Y-%m-%d'), 'date_beg': balance_sheet.pstart.strftime('%Y-%m-%d'), 'compare': '0', 'cash': 'on' if cash else '', 'scope': 'oci'}|urlencode) }}
{% else %} {% else %}