{% if config.args.taxyear %}
{% if audit and not config.args.summary %}
Audit
{% include "audit.html" %}
{% endif %}
{% set tax_year = config.args.taxyear %}
Tax Year - {{tax_year - 1}}/{{tax_year}}
{% include "capital_gains.html" %}
{% if not config.args.summary %}
{% include "income.html" %}
Appendix
{% include "price_data.html" %}
{% endif %}
{% else %}
{% if audit and not config.args.summary %}
Audit
{% include "audit.html" %}
{% endif %}
{% for tax_year in tax_report|sort %}
Tax Year - {{tax_year - 1}}/{{tax_year}}
{% include "capital_gains.html" %}
{% if not config.args.summary %}
{% include "income.html" %}
{% endif %}
{% if not loop.last %}
{% endif %}
{% endfor %}
{% if not config.args.summary %}
Appendix
{% for tax_year in price_report|sort %}
{% include "price_data.html" %}
{% endfor %}
{% include "holdings.html" %}
{% endif %}
{% endif %}