Round price_with_vat

This commit is contained in:
PCoder 2020-01-30 11:52:29 +05:30
parent 3d51e4fe32
commit 3141dc2793
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ class OrderConfirmationView(DetailView, FormView):
2)
vm_specs["vat_country"] = user_vat_country
vm_specs["discount"] = discount
vm_specs["price_with_vat"] = price + vm_specs["vat"]
vm_specs["price_with_vat"] = round(price + vm_specs["vat"], 2)
vm_specs["price_after_discount"] = round(price - discount['amount'], 2)
vm_specs["price_after_discount_with_vat"] = round((price - discount['amount_with_vat']) + vm_specs["vat"], 2)
request.session['specs'] = vm_specs