gestion/factures/commun/_layout.jinja2

89 lines
2.2 KiB
Plaintext
Raw Normal View History

2018-06-05 22:01:52 +00:00
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8"/>
<title>AFPy Facture n°{{ number }}</title>
<link type="text/css" rel="stylesheet" href="../commun/style.css" />
</head>
<body>
<header>
<address id="from">
{%- block address_from -%}
Association Francophone Python
2, rue Professeur Zimmermann
69007 LYON
FRANCE
504 398 355 00017
{%- endblock address_from -%}
</address>
<address id="to">
{%- block address_to -%}
{%- endblock address_to -%}
</address>
</header>
2018-06-11 12:10:46 +00:00
{% block content %}
<dl>
<dt>Date</dt>
<dd>{{ date }}</dd>
<dt>N° de facture</dt>
<dd>{{ number }}</dd>
</dl>
2018-06-05 22:01:52 +00:00
2018-06-11 12:10:46 +00:00
<table>
{% for designation, price, quantity in lines %}
{% if loop.first %}
<thead>
<th>Désignation</th>
<th>Prix unitaire</th>
<th>Quantité</th>
<th>Total</th>
</thead>
<tbody>
{% set total = 0 %}
{% endif %}
2018-06-05 22:01:52 +00:00
2018-06-11 12:10:46 +00:00
<tr>
<td>{{ designation }}</td>
<td>{{ price }} €</td>
<td>{{ quantity }}</td>
<td>{{ quantity * price }} €</td>
</tr>
{% set total = total + quantity * price %}
2018-06-05 22:01:52 +00:00
2018-06-11 12:10:46 +00:00
{% if loop.last %}
</tbody>
<tfoot>
<th colspan="3">Total T.T.C. à payer</th>
<td>{{ total }} €</td>
</tfoot>
{% endif %}
{% endfor %}
</table>
2018-06-05 22:01:52 +00:00
2018-06-11 12:10:46 +00:00
<footer>
<p>
Taxe sur la valeur ajoutée non applicable, article 293 B du CGI.
</p>
<p>
En votre aimable règlement, au comptant par chèque bancaire ou virement.
</p>
2018-06-05 22:01:52 +00:00
2018-06-11 12:10:46 +00:00
<address>
Société Générale Lyon République
6, rue de la République
69206 LYON
</address>
2018-06-05 22:01:52 +00:00
2018-06-11 12:10:46 +00:00
<dl>
<dt>IBAN</dt>
<dd>FR76 3000 3031 2000 0507 6517 116</dd>
<dt>BIC/SWIFT</dt>
<dd>SOGEFRPPLPC</dd>
</dl>
</footer>
{% endblock content %}
2018-06-05 22:01:52 +00:00
</body>
</html>