Add subtotal and VAT to hosting order detail too

This commit is contained in:
PCoder 2018-04-17 22:20:36 +02:00
parent 4c21110c00
commit 2ac1ac7d97

View file

@ -129,13 +129,17 @@
</p> </p>
{% if vm.vat > 0 %} {% if vm.vat > 0 %}
<p> <p>
<span>{% trans "VAT" %}: </span> <span>{% trans "Subtotal" %}: </span>
<span class="pull-right">{{vm.price|floatformat:2|intcomma}} CHF</span>
</p>
<p>
<span>{% trans "VAT" %} ({{ vm.vat_percent|floatformat:2|intcomma }}%): </span>
<span class="pull-right">{{vm.vat|floatformat:2|intcomma}} CHF</span> <span class="pull-right">{{vm.vat|floatformat:2|intcomma}} CHF</span>
</p> </p>
{% endif %} {% endif %}
<p> <p>
<span>{% trans "Total" %}</span> <span>{% trans "Total" %}</span>
<span class="pull-right">{{vm.price|intcomma}} CHF</span> <span class="pull-right">{% if vm.total_price %}{{vm.total_price|floatformat:2|intcomma}}{% else %}{{vm.price|floatformat:2|intcomma}}{% endif %} CHF</span>
</p> </p>
</div> </div>
</div> </div>