Differentiate price and total_price in hosting order_detail

This commit is contained in:
PCoder 2018-04-17 22:23:46 +02:00
parent 2ac1ac7d97
commit 36c0b9a0a6

View file

@ -757,7 +757,9 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView):
if obj.vm_pricing else 'default')
)
context['vm']['vat'] = vat
context['vm']['price'] = price + vat
context['vm']['price'] = price
context['vm']['vat_percent'] = vat_percent
context['vm']['total_price'] = price + vat
context['subscription_end_date'] = vm_detail.end_date()
except VMDetail.DoesNotExist:
try:
@ -774,7 +776,9 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView):
if obj.vm_pricing else 'default')
)
context['vm']['vat'] = vat
context['vm']['price'] = price + vat
context['vm']['price'] = price
context['vm']['vat_percent'] = vat_percent
context['vm']['total_price'] = price + vat
except WrongIdError:
messages.error(
self.request,