ComptaClub/templates/comptability/year_transaction_export_spf...

166 lines
8.2 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 %}Comptabilité {{ 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-8 col-lg-8">
<h2>Comptes simplifiés de l'exercice {{ accounting_year }}</h2>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<p align="right" class="noprint">
<a href="{% url 'by_year' accounting_year %}">Listing</a> | <a href="{% url 'export' accounting_year 'sxs' %}">1 tableau</a> | <a href="{% url 'export' accounting_year 'ooo' %}">2 tableaux</a>
</p>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<h3>Etat recettes-dépenses</h3>
</div>
<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="2">Dépenses</th>
<th class="col-md-2 centered" colspan="2">Recettes</th>
</tr>
</thead>
{% for transactiontype in transactiontypes_list %}
<tr>
<td>
{{ transactiontype.1.label }}
</td>
<td class="push-right">
{% if transactiontype.1.sum_total_amount == None %}0,00{% else %}{{ transactiontype.1.sum_total_amount|floatformat:0|intdot }}{% endif %}
</td>
<td>
{{ transactiontype.0.label }}
</td>
<td class="push-right">
{% if transactiontype.0.sum_total_amount == None %}0,00{% else %}{{ transactiontype.0.sum_total_amount|floatformat:0|intdot }}{% endif %}
</td>
</tr>
{% endfor %}
<tr>
<td class="push-right"><b>Total des dépenses</b></td>
<td class="push-right"><b>{{ total_expenses|floatformat:0|intdot }}</b></td>
<td class="push-right"><b>Total des recettes</b></td>
<td class="push-right"><b>{{ total_recette|floatformat:0|intdot }}</b></td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<h3>Annexes</h3>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<h4>1. Résumé des règles d'évaluation</h4>
<ul>
{% for rule in rules_list %}
<li><u>{{ rule.label }} :</u> {{ rule.explanation }}</li>
{% endfor %}
</ul>
<br>
<h4>2. Adaptation des règles d'évaluation</h4>
{% if rules_adaptation_list %}
<ul>
{% for line in rules_adaptation_list %}
<li><u>{{ line.label }} :</u> {{ line.information }}</li>
{% endfor %}
</ul>
{% else %}
<p>Pas d'adaptation des règles d'évaluation.</p>
{% endif %}
<br>
<h4>3. Informations complémentaires</h4>
{% if complementary_informations %}
<ul>
{% for line in complementary_informations %}
<li><u>{{ line.label }} :</u> {{ line.information }}</li>
{% endfor %}
</ul>
{% else %}
<p>Pas d'informations complémentaires.</p>
{% endif %}
<br>
<h4>4. Etat du patrimoine</h4>
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th class="col-md-2 centered" colspan="2">Avoirs</th>
<th class="col-md-2 centered" colspan="2">Dettes</th>
</tr>
</thead>
{% for line in asset_liability_sum %}
<tr>
<td>
{{ line.0.0 }}
</td>
<td class="push-right">
{% if line.0.1 == None %}0,00{% else %}{{ line.0.1|floatformat:0|intdot }}{% endif %}
</td>
<td>
{{ line.1.0 }}
</td>
<td class="push-right">
{% if line.1.0 != None %}{{ line.1.1 }}{% endif %}
</td>
</tr>
{% endfor %}
</table>
<br>
<h4>5. Droits et engagements importants qui ne sont pas susceptibles d'être quantifiés</h4>
{% if right_engagement_sum %}
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th class="col-md-2 centered" colspan="2">Droits</th>
<th class="col-md-2 centered" colspan="2">Engagements</th>
</tr>
</thead>
{% for line in right_engagement_sum %}
<tr>
<td>
{{ line.0.0 }}
</td>
<td class="push-right">
{{ line.0.1|floatformat:0|intdot }}
</td>
<td>
{{ line.1.0 }}
</td>
<td class="push-right">
{{ line.1.1|floatformat:0|intdot }}
</td>
</tr>
{% endfor %}
</table>
{% else %}
<p>Pas de droits ou d'engagements.</p>
{% endif %}
<br>
</div>
</div>
<div class="row">
<div class="span12">
<p class="right"><a href="{% url 'pdf_export' accounting_year %}" class="btn btn-default btn-primary" role="button">Comptes PDF</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}