ComptaClub/billing/templates/compta.html

190 lines
9.8 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.

{% load staticfiles %}
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="{% static "css/bootstrap.min.css" %}" media="all" />
<link rel="stylesheet" href="{% static "css/app.css" %}" media="all" />
<script src="{% static "js/jquery-2.1.4.min.js" %}"></script>
<script src="{% static "js/bootstrap.min.js" %}"></script>
<!-- <script src="{% static "js/tablesort.js" %}"></script> -->
<!-- <link href="{% static "css/theme.default.min.css" %}" rel="stylesheet"> -->
<script src="{% static "js/jquery.tablesorter.js" %}"></script>
<script src="{% static "js/jquery.tablesorter.widgets.js" %}"></script>
<title>Comptabilité</title>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Comptabilité</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="/">Home</a></li>
<li><a href="/admin/" target="_blank">Administration</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<!-- <section id="main" class="container"> -->
<!-- <div id="page" class=" sidebar_right">
<div class="container">
<div id="frame2">
<div id="content"> -->
<font size="5"><b><u>Comptabilité {{ accounting_year }}</b></u></font>
<br />
<br />
<table class="table table-striped table-bordered table-condensed sort sortable-onload-5-6r rowstyle-alt colstyle-alt" id="comptaTable">
<thead>
<tr>
<th class="centered" colspan="13">DEPENSES</th>
</tr>
<tr>
<th class="centered sortable" rowspan="2">#</th>
<th class="centered sortable" rowspan="2">Date</th>
<th class="centered sortable" rowspan="2">Description</th>
<th class="centered" colspan="2">Banque</th>
<th class="centered" colspan="2">Caisse</th>
<th class="centered" rowspan="2">TOTAL</th>
<th class="centered" colspan="5">Dépenses</th>
</tr>
<tr>
<th class="sortable push-right">#</th>
<th class="centered sortable">Montant</th>
<th class="sortable push-right">#</th>
<th class="centered">Montant</th>
<th class="centered">March. & serv.</th>
<th class="centered">Rémun.</th>
<th class="centered">Serv. & bien div.</th>
<th class="centered">Autre - Montant</th>
<th class="centered">Autre - Descr.</th>
</tr>
</thead>
{% for line in depenses %}
<tr>
<td>{{ line.id }}</td>
<td class="push-right">{{ line.registrationDate | date:"d-m-Y"}}</td>
<td><a href="/compta/details/{{ line.id }}">{{ line }}</a></td>
<td>{% if variable != None %}{{ line.bkExtractNumber }}{% endif %}</td>
<td class="push-right">{{ line.bkAmount }}</td>
<td>{% if variable != None %}{{ line.bxExtractNumber }}{% endif %}</td>
<td class="push-right">{{ line.bxAmount }}</td>
<td class="push-right">{{ line.totalAmount }}</td>
<td class="push-right">{{ line.marchandises }}</td>
<td class="push-right">{{ line.remunerations }}</td>
<td class="push-right">{{ line.services }}</td>
<td class="push-right">{{ line.otherAmount }}</td>
<td>{{ line.otherDescription }}</td>
</tr>
{% endfor %}
<tfoot>
<tr class="danger">
<td colspan="4" class="push-right"><b>Total</b></td>
<td class="push-right"><b>{{ total_Depenses_BkAmount }}</b></td>
<td></td>
<td class="push-right"><b>{{ total_Depenses_BxAmount }}</b></td>
<td class="push-right"><b>{{ total_Depenses_Amount }}</b></td>
<td class="push-right"><b>{{ totalMarchandises }}</b></td>
<td class="push-right"><b>{{ totalRemunerations }}</b></td>
<td class="push-right"><b>{{ totalServices }}</b></td>
<td class="push-right"><b>{{ total_Depenses_OtherAmount }}</b></td>
<td></td>
</tr>
</tfoot>
</table>
<br>
<hr>
<br>
<br>
<table class="table table-striped table-bordered table-condensed sort sortable-onload-5-6r rowstyle-alt colstyle-alt" id="comptaTable">
<thead>
<tr>
<th class="centered" colspan="13">RECETTES</th>
</tr>
<tr>
<th class="centered sortable" rowspan="2">#</th>
<th class="centered sortable" rowspan="2">Date</th>
<th class="centered sortable" rowspan="2">Description</th>
<th class="centered" colspan="2">Banque</th>
<th class="centered" colspan="2">Caisse</th>
<th class="centered" rowspan="2">TOTAL</th>
<th class="centered" colspan="5">Recettes</th>
</tr>
<tr>
<th class="sortable push-right">#</th>
<th class="centered sortable">Montant</th>
<th class="sortable push-right">#</th>
<th class="centered">Montant</th>
<th class="centered">Cotisations</th>
<th class="centered">Legs & dons</th>
<th class="centered">Subsides</th>
<th class="centered">Autre - Montant</th>
<th class="centered">Autre - Descr.</th>
</tr>
</thead>
{% for line in recettes %}
<tr>
<td>{{ line.id }}</td>
<td class="push-right">{{ line.registrationDate | date:"d-m-Y"}}</td>
<td><a href="/compta/details/{{ line.id }}">{{ line }}</a></td>
<td>{% if variable != None %}{{ line.bkExtractNumber }}{% endif %}</td>
<td class="push-right">{{ line.bkAmount }}</td>
<td>{% if variable != None %}{{ line.bxExtractNumber }}{% endif %}</td>
<td class="push-right">{{ line.bxAmount }}</td>
<td class="push-right">{{ line.totalAmount }}</td>
<td class="push-right">{{ line.cotisations }}</td>
<td class="push-right">{{ line.dons }}</td>
<td class="push-right">{{ line.subsides }}</td>
<td class="push-right">{{ line.otherAmount }}</td>
<td>{{ line.otherDescription }}</td>
</tr>
{% endfor %}
<tfoot>
<tr class="success">
<td colspan="4" class="push-right"><b>Total</b></td>
<td class="push-right"><b>{{ total_Recettes_BkAmount }}</b></td>
<td></td>
<td class="push-right"><b>{{ total_Recettes_BxAmount }}</b></td>
<td class="push-right"><b>{{ total_Recettes_Amount }}</b></td>
<td class="push-right"><b>{{ totalCotisations }}</b></td>
<td class="push-right"><b>{{ totalDons }}</b></td>
<td class="push-right"><b>{{ totalSubsides }}</b></td>
<td class="push-right"><b>{{ total_Recettes_otherAmount }}</b></td>
<td></td>
</tr>
</tfoot>
</table>
<!-- </div>
</div>
</div>
</div> -->
<!-- </section> -->
</body>
</html>
<script type="text/javascript">
$(document).ready(function() {
$('#comptaTable').tablesorter({
dateFormat: "uk",
headers: {
0: { dateFormat: "ddmmyyyy" },
4: { sorter: false },
},
sortList: [[0,0]]
})
});
</script>