From 903336a46fc16541f7592c32e08ff554baacd195 Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 16 Apr 2018 00:59:42 +0200 Subject: [PATCH] Show 2 upto decimal places in order detail --- datacenterlight/templates/datacenterlight/order_detail.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datacenterlight/templates/datacenterlight/order_detail.html b/datacenterlight/templates/datacenterlight/order_detail.html index 20ff4db3..f26bc450 100644 --- a/datacenterlight/templates/datacenterlight/order_detail.html +++ b/datacenterlight/templates/datacenterlight/order_detail.html @@ -68,12 +68,12 @@ {% if vm.vat > 0 %}

{% trans "VAT" %}: - {{vm.vat|floatformat|intcomma}} CHF + {{vm.vat|floatformat:2|intcomma}} CHF

{% endif %}

{% trans "Total" %} - {{vm.total_price|floatformat|intcomma}} CHF + {{vm.total_price|floatformat:2|intcomma}} CHF

@@ -84,7 +84,7 @@ {% csrf_token %}
-
{% blocktrans with vm_total_price=vm.total_price|floatformat|intcomma %}By clicking "Place order" this plan will charge your credit card account with the fee of {{vm_total_price}} CHF/month{% endblocktrans %}.
+
{% blocktrans with vm_total_price=vm.total_price|floatformat:2|intcomma %}By clicking "Place order" this plan will charge your credit card account with the fee of {{vm_total_price}} CHF/month{% endblocktrans %}.