From 12975565a51de8eb61a0954c13f37500a52f76ad Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 26 Dec 2019 20:09:28 +0530 Subject: [PATCH] More bugfix --- datacenterlight/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 8d371c97..10b3ebbf 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -667,7 +667,7 @@ class OrderConfirmationView(DetailView, FormView): vm_specs["vat"] = vat vm_specs["vat_percent"] = vat_percent vm_specs["vat_validation_status"] = request.session["vat_validation_status"] if "vat_validation_status" in request.session else "" - vm_specs["total_price"] = round(price + vat - discount['amount'], + vm_specs["total_price"] = round(price + vm_specs["vat"] - discount['amount'], 2) vm_specs["vat_country"] = user_vat_country vm_specs["discount"] = discount