diff --git a/templates/jobs.html b/templates/jobs.html
index 08378ba..d0c14b1 100644
--- a/templates/jobs.html
+++ b/templates/jobs.html
@@ -99,7 +99,7 @@
Poids |
Duree |
Prix HT |
- Prix final |
+ Prix TTC |
|
@@ -135,21 +135,28 @@
{% endif %}
{{ j.print_time_s | fmt_time }} |
+ {% set prix_ttc = (j.final_price / (1 - j.discount_pct / 100)) if (j.discount_pct and j.discount_pct > 0 and j.discount_pct < 100) else (j.final_price or 0) %}
{% if prix_ht > 0 %}
- {{ '%.2f'|format(prix_ht) }} € /pce
+ {{ '%.2f'|format(prix_ht) }} € HT/pce
{% if qty > 1 %}
{{ '%.2f'|format(prix_ht * qty) }} € x{{ qty }}
{% endif %}
{% else %}--{% endif %}
|
- {{ '%.2f'|format(j.final_price or 0) }} €
+ {{ '%.2f'|format(prix_ttc) }} € TTC
{% if j.discount_pct and j.discount_pct > 0 %}
- -{{ j.discount_pct }}%
+ {{ '%.2f'|format(j.final_price or 0) }} €
+ -{{ j.discount_pct }}%
{% endif %}
{% if qty > 1 %}
- {{ '%.2f'|format((j.final_price or 0) * qty) }} € tot.
+
+ {{ '%.2f'|format(prix_ttc * qty) }} € TTC tot.
+ {% if j.discount_pct and j.discount_pct > 0 %}
+ → {{ '%.2f'|format((j.final_price or 0) * qty) }} €
+ {% endif %}
+
{% endif %}
|
|