Fix more autoformatting issues

This commit is contained in:
PCoder 2019-04-03 23:31:52 +02:00
parent d00e84a4b6
commit 903fee4db1

View file

@ -137,8 +137,7 @@
CHF</strong>
</p>
<p>
<small>{% trans "VAT" %} ({{
vm.vat_percent|floatformat:2|intcomma }}%)
<small>{% trans "VAT" %} ({{ vm.vat_percent|floatformat:2|intcomma }}%)
</small>
<strong class="pull-right">{{vm.vat|floatformat:2|intcomma}}
CHF</strong>
@ -147,10 +146,8 @@
{% if vm.discount.amount > 0 %}
<p class="text-primary">
{%trans "Discount" as discount_name %}
<strong>{{ vm.discount.name|default:discount_name
}} </strong>
<strong class="pull-right">- {{ vm.discount.amount
}} CHF</strong>
<strong>{{ vm.discount.name|default:discount_name }} </strong>
<strong class="pull-right">- {{ vm.discount.amount }} CHF</strong>
</p>
{% endif %}
</div>
@ -162,9 +159,7 @@
<div class="col-sm-6">
<p class="total-price">
<strong>{% trans "Total" %} </strong>
<strong class="pull-right">{% if vm.total_price
%}{{vm.total_price|floatformat:2|intcomma}}{% else
%}{{vm.price|floatformat:2|intcomma}}{% endif %}
<strong class="pull-right">{% if vm.total_price %}{{vm.total_price|floatformat:2|intcomma}}{% else %}{{vm.price|floatformat:2|intcomma}}{% endif %}
CHF</strong>
</p>
</div>