From 2ac1ac7d9728db5ec30e434aae0495c19385c3a2 Mon Sep 17 00:00:00 2001
From: PCoder
Date: Tue, 17 Apr 2018 22:20:36 +0200
Subject: [PATCH] Add subtotal and VAT to hosting order detail too
---
hosting/templates/hosting/order_detail.html | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html
index 099aaab8..45b68cae 100644
--- a/hosting/templates/hosting/order_detail.html
+++ b/hosting/templates/hosting/order_detail.html
@@ -129,13 +129,17 @@
{% if vm.vat > 0 %}
- {% trans "VAT" %}:
+ {% trans "Subtotal" %}:
+ {{vm.price|floatformat:2|intcomma}} CHF
+
+
+ {% trans "VAT" %} ({{ vm.vat_percent|floatformat:2|intcomma }}%):
{{vm.vat|floatformat:2|intcomma}} CHF
{% endif %}
{% trans "Total" %}
- {{vm.price|intcomma}} CHF
+ {% if vm.total_price %}{{vm.total_price|floatformat:2|intcomma}}{% else %}{{vm.price|floatformat:2|intcomma}}{% endif %} CHF