gestion/factures/commun/_layout.jinja2
2019-08-06 01:41:17 +02:00

101 lines
2.6 KiB
Django/Jinja
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.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8"/>
{% if number == 'lettre' %}
<title>AFPY - Lettre</title>
{% else %}
<title>AFPy {{ 'Devis' if quotation else 'Facture' }}{{ number }}</title>
{% endif %}
<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>
{% block content %}
<dl>
<dt>Date</dt>
<dd>{{ date }}</dd>
<dt>N° de {{ 'devis' if quotation else 'facture' }}</dt>
<dd>{{ number }}</dd>
</dl>
<table>
{% set total = [0] %}
{% 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>
{% endif %}
<tr>
<td>{{ designation }}</td>
<td>{{ price }} €</td>
<td>{{ quantity }}</td>
<td>{{ quantity * price }} €</td>
</tr>
{{ total.append(quantity * price) or '' }}
{% if loop.last %}
</tbody>
<tfoot>
<th colspan="3">Total T.T.C. à payer</th>
<td>{{ total | sum }} €</td>
</tfoot>
{% endif %}
{% endfor %}
</table>
{% endblock content %}
<footer>
{% block footer %}
<p>
Taxe sur la valeur ajoutée non applicable, article 293 B du CGI.
</p>
{% if paypal %}
<p>
En votre aimable règlement, au comptant, sur notre compte PayPal: tresorier@afpy.org.
</p>
{% else %}
<p>
En votre aimable règlement, au comptant par chèque bancaire ou virement.
</p>
<address>
Société Générale Lyon République
6, rue de la République
69206 LYON
</address>
<dl>
<dt>IBAN</dt>
<dd>FR76 3000 3031 2000 0507 6517 116</dd>
<dt>BIC/SWIFT</dt>
<dd>SOGEFRPPLPC</dd>
</dl>
{% endif %}
{% endblock footer %}
</footer>
</body>
</html>