Révision f82ab4b8
Ajouté par Frédéric Péters il y a plus de 9 ans
facturier/templates/facturier/tipi.html | ||
---|---|---|
1 | 1 |
{% extends 'base-cms.html' %} |
2 |
{% load i18n portail_citoyen_tags facturier_tags %}
|
|
2 |
{% load i18n facturier_tags %} |
|
3 | 3 |
|
4 | 4 |
{% block breadcrumbs %} |
5 | 5 |
<li><a href="/factures/">Mes factures</a></li> |
... | ... | |
44 | 44 |
<h1>Facture n° {{ invoice.id }}</h1> |
45 | 45 |
<div class="rteContent col"> |
46 | 46 |
<div class="wrapSpecial"> |
47 |
{% if invoice.paid_amount|to_decimal and invoice.total_amount != invoice.paid_amount %}
|
|
47 |
{% if invoice.paid_amount and invoice.total_amount != invoice.paid_amount %} |
|
48 | 48 |
<h2>Facture réglée partiellement</h2> |
49 | 49 |
{% endif %} |
50 | 50 |
<h2>Montant de la facture : {{ invoice.total_amount }} €</h2> |
51 | 51 |
<h2>Montant restant à régler : {{ invoice.amount }} €</h2> |
52 | 52 |
|
53 | 53 |
<p>Facture émise le |
54 |
{{ invoice.creation_date|to_date|date:"j F Y" }}
|
|
54 |
{{ invoice.creation_date|date:"j F Y" }} |
|
55 | 55 |
{% if invoice.prelevement_automatique %} |
56 | 56 |
<br /> |
57 | 57 |
Prélèvement automatique |
58 |
{% if invoice.amount|to_decimal %}
|
|
59 |
prévu le {{ invoice.expiration_date|to_date|date:"j F Y" }}
|
|
58 |
{% if invoice.amount %} |
|
59 |
prévu le {{ invoice.expiration_date|date:"j F Y" }} |
|
60 | 60 |
{% else %} |
61 |
effectué le {{ invoice.paid_date|to_date|date:"j F Y" }}
|
|
61 |
effectué le {{ invoice.paid_date|date:"j F Y" }} |
|
62 | 62 |
{% endif %} |
63 | 63 |
{% endif %} |
64 | 64 |
</p> |
... | ... | |
91 | 91 |
{% elif invoice.paid %} |
92 | 92 |
<p> |
93 | 93 |
Cette facture a été réglée |
94 |
{% if invoice.paid_date %}le {{ invoice.paid_date|to_date|date:"j F Y" }}
|
|
95 |
{% elif invoice.tipi_paid_date %} le {{ invoice.tipi_paid_date|to_date|date:"j F Y" }} {% endif %}
|
|
94 |
{% if invoice.paid_date %}le {{ invoice.paid_date|date:"j F Y" }} |
|
95 |
{% elif invoice.tipi_paid_date %} le {{ invoice.tipi_paid_date|date:"j F Y" }} {% endif %} |
|
96 | 96 |
</p> |
97 | 97 |
|
98 | 98 |
{% elif invoice.expired %} |
Formats disponibles : Unified diff
convert invoice values to proper datatypes (#6433)
This removes the need to call portail_citoyen2 templatetags to do the
conversion at template rendering time.