{#  DrCr: Web-based double-entry bookkeeping framework
    Copyright (C) 2022–2023  Lee Yingtong Li (RunasSudo)

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
#}

{% extends 'base.html' %}
{% block title %}DrCr{% endblock %}

{% block content %}
	<h1 class="h2 my-4">Data sources</h1>
	<ul>
		<li><a href="{{ url_for('journal') }}">Journal</a></li>
		<li><a href="{{ url_for('statement_lines') }}">Statement lines</a></li>
		<li><a href="{{ url_for('balance_assertions') }}">Balance assertions</a></li>
		<li><a href="{{ url_for('chart_of_accounts') }}">Chart of accounts</a></li>
		{% for report in data_sources %}
			<li><a href="{{ url_for(report[0]) }}">{{ report[1] }}</a></li>
		{% endfor %}
	</ul>
	
	<h1 class="h2 my-4">General reports</h1>
	<ul>
		<li><a href="{{ url_for('general_ledger') }}">General ledger</a></li>
		<li><a href="{{ url_for('trial_balance') }}">Trial balance</a></li>
		<li><a href="{{ url_for('balance_sheet') }}">Balance sheet</a></li>
		<li><a href="{{ url_for('income_statement') }}">Income statement</a></li>
	</ul>
	
	<h1 class="h2 my-4">Advanced reports</h1>
	<ul>
		{% for report in advanced_reports %}
			<li><a href="{{ url_for(report[0]) }}">{{ report[1] }}</a></li>
		{% endfor %}
	</ul>
{% endblock %}