2020-02-17 21:38:47 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% load humanize %}
|
|
|
|
{% load intdot %}
|
|
|
|
|
2020-02-21 09:22:36 +01:00
|
|
|
{% block page_title %}Année comptable {{ accounting_year }}{% endblock %}
|
2020-02-17 21:38:47 +01:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div id="page" class=" sidebar_right">
|
|
|
|
<div class="container">
|
|
|
|
<div id="frame2">
|
|
|
|
<div id="content">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
|
2020-02-21 09:22:36 +01:00
|
|
|
<h3>Année comptable {{ accounting_year }}</h3>
|
2020-02-17 21:38:47 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
|
|
|
|
<p align="right" class="noprint">
|
2022-05-10 08:20:50 +02:00
|
|
|
<a href="{% url 'by_year' accounting_year %}"><button type="button" class="btn btn-primary">Listing</button></a> <a href="{% url 'export' accounting_year 'ooo' %}"><button type="button" class="btn btn-primary">2 tableaux</button></a> <a href="{% url 'export_simple' accounting_year %}"><button type="button" class="btn btn-primary">Export SPF</button></a>
|
2020-02-17 21:38:47 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
|
|
|
<table class="table table-striped table-bordered table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="col-md-2 centered" colspan="3">Dépenses</th>
|
|
|
|
<th class="col-md-2 centered" colspan="3">Recettes</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="col-md-3">Types</th>
|
|
|
|
<th class="col-md-2 centered" colspan="2">Montants</th>
|
|
|
|
<th class="col-md-3">Types</th>
|
|
|
|
<th class="col-md-2 centered" colspan="2">Montants</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2020-02-21 08:50:12 +01:00
|
|
|
{% for transactiontype in transactiontypes_list %}
|
2020-02-21 09:22:36 +01:00
|
|
|
<tr {% if transactiontype.1.parent %} class="noprint" {% endif %}>
|
2020-02-17 21:38:47 +01:00
|
|
|
|
|
|
|
<!-- FIRST COLUMN -->
|
|
|
|
<td>
|
2020-02-21 09:22:36 +01:00
|
|
|
{% if transactiontype.1.parent %}
|
2020-02-17 21:38:47 +01:00
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<b>
|
|
|
|
{% endif %}
|
2022-04-25 10:19:54 +02:00
|
|
|
<a href="{% url 'transaction_listing_for_year_and_type' accounting_year transactiontype.1.id %}">{{ transactiontype.1.label }}</a>
|
2020-02-21 09:22:36 +01:00
|
|
|
{% if transactiontype.1.parent == None %}
|
2020-02-17 21:38:47 +01:00
|
|
|
</b>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2022-04-25 10:19:54 +02:00
|
|
|
|
2020-02-21 09:22:36 +01:00
|
|
|
{% if transactiontype.1.parent %}
|
2020-02-17 21:38:47 +01:00
|
|
|
<td class="col-md-1 push-right">
|
2020-02-21 09:22:36 +01:00
|
|
|
{% if transactiontype.1.label %}{% if transactiontype.1.total_transactiontypes_value == None %}0,00{% else %}{{ transactiontype.1.total_transactiontypes_value|floatformat:2|intdot }}{% endif %}{% endif %}
|
2020-02-17 21:38:47 +01:00
|
|
|
</td>
|
|
|
|
<td class="col-md-1"></td>
|
|
|
|
{% else %}
|
|
|
|
<td></td>
|
|
|
|
<td class="push-right">
|
2020-02-21 09:22:36 +01:00
|
|
|
{% if transactiontype.1.total_transactiontypes_value == None %}0,00{% else %}{{ transactiontype.1.total_transactiontypes_value|floatformat:2|intdot }}{% endif %}
|
2020-02-17 21:38:47 +01:00
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<!-- SECOND COLUMN -->
|
|
|
|
<td>
|
2020-02-21 09:22:36 +01:00
|
|
|
{% if transactiontype.0.id %}
|
|
|
|
{% if transactiontype.0.parent %}
|
2020-02-17 21:38:47 +01:00
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<b>
|
|
|
|
{% endif %}
|
2022-04-25 10:19:54 +02:00
|
|
|
<a href="{% url 'transaction_listing_for_year_and_type' accounting_year transactiontype.0.id %}">{{ transactiontype.0.label }}</a>
|
2020-02-21 09:22:36 +01:00
|
|
|
{% if transactiontype.0.parent == None %}
|
2020-02-17 21:38:47 +01:00
|
|
|
</b>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2020-02-21 09:22:36 +01:00
|
|
|
{% if transactiontype.0.parent %}
|
2020-02-17 21:38:47 +01:00
|
|
|
<td class="col-md-1 push-right">
|
2020-02-21 09:22:36 +01:00
|
|
|
{% if transactiontype.0.label %}{% if transactiontype.0.total_transactiontypes_value == None %}0,00{% else %}{{ transactiontype.0.total_transactiontypes_value|floatformat:2|intdot }}{% endif %}{% endif %}
|
2020-02-17 21:38:47 +01:00
|
|
|
</td>
|
|
|
|
<td class="col-md-1"></td>
|
|
|
|
{% else %}
|
|
|
|
<td></td>
|
|
|
|
<td class="push-right">
|
2020-02-21 09:22:36 +01:00
|
|
|
{% if transactiontype.0.label %}{% if transactiontype.0.total_transactiontypes_value == None %}0,00{% else %}{{ transactiontype.0.total_transactiontypes_value|floatformat:2|intdot }}{% endif %}{% endif %}
|
2020-02-17 21:38:47 +01:00
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="push-right"><b>Total</b></td>
|
2020-02-21 09:22:36 +01:00
|
|
|
<td class="push-right"><b>{{ total_expenses|floatformat:2|intdot }}</b></td>
|
2020-02-17 21:38:47 +01:00
|
|
|
<td colspan="2" class="push-right"><b>Total</b></td>
|
2020-02-21 09:22:36 +01:00
|
|
|
<td class="push-right"><b>{{ total_recettes|floatformat:2|intdot }}</b></td>
|
2020-02-17 21:38:47 +01:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
<br>
|
2022-05-10 10:56:25 +02:00
|
|
|
<p align="center" class="noprint">
|
|
|
|
<a href="{% url 'by_year' accounting_year %}"><button type="button" class="btn btn-primary">Listing</button></a> <a href="{% url 'export' accounting_year 'ooo' %}"><button type="button" class="btn btn-primary">2 tableaux</button></a> <a href="{% url 'export_simple' accounting_year %}"><button type="button" class="btn btn-primary">Export SPF</button></a>
|
|
|
|
</p>
|
2020-02-17 21:38:47 +01:00
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|