ComptaClub/templates/comptability/year_transaction_export_sxs...

115 lines
7.1 KiB
HTML
Raw Normal View History

2020-02-17 21:38:47 +01:00
{% extends "base.html" %}
{% load humanize %}
{% load intdot %}
{% 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">
<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>&nbsp;&nbsp;&nbsp;<a href="{% url 'export' accounting_year 'ooo' %}"><button type="button" class="btn btn-primary">2 tableaux</button></a>&nbsp;&nbsp;&nbsp;<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 %}
<tr {% if transactiontype.1.parent %} class="noprint" {% endif %}>
2020-02-17 21:38:47 +01:00
<!-- FIRST COLUMN -->
<td>
{% if transactiontype.1.parent %}
2020-02-17 21:38:47 +01:00
&nbsp;&nbsp;&nbsp;&nbsp;
{% 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>
{% if transactiontype.1.parent == None %}
2020-02-17 21:38:47 +01:00
</b>
{% endif %}
</td>
2022-04-25 10:19:54 +02:00
{% if transactiontype.1.parent %}
2020-02-17 21:38:47 +01:00
<td class="col-md-1 push-right">
{% 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">
{% 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>
{% if transactiontype.0.id %}
{% if transactiontype.0.parent %}
2020-02-17 21:38:47 +01:00
&nbsp;&nbsp;&nbsp;&nbsp;
{% 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>
{% if transactiontype.0.parent == None %}
2020-02-17 21:38:47 +01:00
</b>
{% endif %}
{% endif %}
</td>
{% if transactiontype.0.parent %}
2020-02-17 21:38:47 +01:00
<td class="col-md-1 push-right">
{% 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">
{% 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>
<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>
<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>&nbsp;&nbsp;&nbsp;<a href="{% url 'export' accounting_year 'ooo' %}"><button type="button" class="btn btn-primary">2 tableaux</button></a>&nbsp;&nbsp;&nbsp;<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 %}