ComptaClub/templates/comptability/year_transaction_export_sxs...

113 lines
6.9 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "base.html" %}
{% load humanize %}
{% load intdot %}
{% block page_title %}Année comptable {{ accounting_year }}{% endblock %}
{% 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>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<p align="right" 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>
</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>
{% for transactiontype in transactiontypes_list %}
<tr {% if transactiontype.1.parent %} class="noprint" {% endif %}>
<!-- FIRST COLUMN -->
<td>
{% if transactiontype.1.parent %}
&nbsp;&nbsp;&nbsp;&nbsp;
{% else %}
<b>
{% endif %}
<a href="{% url 'transaction_listing_for_year_and_type' accounting_year transactiontype.1.id %}">{{ transactiontype.1.label }}</a>
{% if transactiontype.1.parent == None %}
</b>
{% endif %}
</td>
{% if transactiontype.1.parent %}
<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 %}
</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 %}
</td>
{% endif %}
<!-- SECOND COLUMN -->
<td>
{% if transactiontype.0.id %}
{% if transactiontype.0.parent %}
&nbsp;&nbsp;&nbsp;&nbsp;
{% else %}
<b>
{% endif %}
<a href="{% url 'transaction_listing_for_year_and_type' accounting_year transactiontype.0.id %}">{{ transactiontype.0.label }}</a>
{% if transactiontype.0.parent == None %}
</b>
{% endif %}
{% endif %}
</td>
{% if transactiontype.0.parent %}
<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 %}
</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 %}
</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>
<td colspan="2" class="push-right"><b>Total</b></td>
<td class="push-right"><b>{{ total_recettes|floatformat:2|intdot }}</b></td>
</tr>
</tfoot>
</table>
<br>
<p align="center" class="noprint"><a href="{% url 'by_year' accounting_year %}">Listing</a> | <a href="{% url 'export' accounting_year 'ooo' %}">Affichage 2 tableaux</a> | <a href="{% url 'export_simple' accounting_year %}">Affichage 1 tableaux simplifié</a></p>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}