Link Current Year OCI balance sheet account to income statement

This commit is contained in:
RunasSudo 2020-04-01 13:55:26 +11:00
parent baded7b47a
commit dc2c474b1b
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -23,7 +23,9 @@
<td style="padding-left: calc(2px + {{ level }}em);"> <td style="padding-left: calc(2px + {{ level }}em);">
{% if balance_sheets|length == 1 %} {% if balance_sheets|length == 1 %}
{% if account.name == config['current_year_earnings'] %} {% if account.name == config['current_year_earnings'] %}
<a href="/pandl?{{ {'date_end': balance_sheets[0].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 }}"> <a href="/pandl?{{ {'date_end': balance_sheets[0].date.strftime('%Y-%m-%d'), 'date_beg': balance_sheets[0].pstart.strftime('%Y-%m-%d'), 'compare': '0', 'cash': 'on' if cash else '', 'scope': 'pandl'}|urlencode }}">
{% elif account.name == config['current_year_oci'] %}
<a href="/pandl?{{ {'date_end': balance_sheets[0].date.strftime('%Y-%m-%d'), 'date_beg': balance_sheets[0].pstart.strftime('%Y-%m-%d'), 'compare': '0', 'cash': 'on' if cash else '', 'scope': 'oci'}|urlencode }}">
{% else %} {% else %}
<a href="/transactions?{{ {'date_end': balance_sheets[0].date.strftime('%Y-%m-%d'), 'date_beg': balance_sheets[0].pstart.strftime('%Y-%m-%d'), 'account': account.name, 'cash': 'on' if cash else ''}|urlencode }}"> <a href="/transactions?{{ {'date_end': balance_sheets[0].date.strftime('%Y-%m-%d'), 'date_beg': balance_sheets[0].pstart.strftime('%Y-%m-%d'), 'account': account.name, 'cash': 'on' if cash else ''}|urlencode }}">
{% endif %} {% endif %}