Show 2 upto decimal places in order detail

This commit is contained in:
PCoder 2018-04-16 00:59:42 +02:00
parent ec753eb0d5
commit 903336a46f

View file

@ -68,12 +68,12 @@
{% if vm.vat > 0 %}
<p>
<span>{% trans "VAT" %}: </span>
<span class="pull-right">{{vm.vat|floatformat|intcomma}} CHF</span>
<span class="pull-right">{{vm.vat|floatformat:2|intcomma}} CHF</span>
</p>
{% endif %}
<p>
<span>{% trans "Total" %}</span>
<span class="pull-right">{{vm.total_price|floatformat|intcomma}} CHF</span>
<span class="pull-right">{{vm.total_price|floatformat:2|intcomma}} CHF</span>
</p>
</div>
</div>
@ -84,7 +84,7 @@
{% csrf_token %}
<div class="row">
<div class="col-sm-8">
<div class="dcl-place-order-text">{% 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 %}.</div>
<div class="dcl-place-order-text">{% 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 %}.</div>
</div>
<div class="col-sm-4 order-confirm-btn text-right">
<button class="btn choice-btn" id="btn-create-vm" data-toggle="modal" data-target="#createvm-modal">