template tags of invoice page updated

This commit is contained in:
Serghei Mihai 2014-10-14 16:24:22 +02:00
parent 9d77a9327b
commit 77b6a64e23
1 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,5 @@
{% extends 'base-cms.html' %}
{% load i18n %}
{% load orleans_tags %}
{% load facturier_tags %}
{% load i18n orleans_tags facturier_tags %}
{% block breadcrumbs %}
<li><a href="/factures/">Mes factures</a></li>
@ -47,15 +45,17 @@
<h1>Facture n° {{ invoice.id }}</h1>
<div class="wrapSpecial"><div class="rteContent">
{% if invoice.total_amount != invoice.paid_amount %}
<h2Facture reglée partiellement</h2>
{% endif %}
<h2>Montant de la facture : {{ invoice.total_amount }} €</h2>
<h2>Montant restant à régler : {{ invoice.amount }} €</h2>
<p>Facture émise le
{{ invoice.creation_date|iso8601|date:"j F Y" }}
{{ invoice.creation_date|to_date|date:"j F Y" }}
{% if invoice.prelevement_automatique %}
<br />
{% with expiration_date=invoice.expiration_date|iso8601 %}
{% with expiration_date=invoice.expiration_date|to_date %}
Prélèvement automatique
{% if expiration_date < now %}
effectué
@ -94,7 +94,7 @@
{% elif invoice.paid %}
<p>
Cette facture a été reglée
{% if invoice.paid_date %}le {{ invoice.paid_date|iso8601|date:"j F Y" }}{% endif %}
{% if invoice.paid_date %}le {{ invoice.paid_date|to_date|date:"j F Y" }}{% endif %}
</p>
{% elif invoice.expired %}