Add parameters needed for displaying prices after discount, and vat
This commit is contained in:
parent
24740438f7
commit
970834cc38
1 changed files with 3 additions and 0 deletions
|
@ -681,6 +681,9 @@ class OrderConfirmationView(DetailView, FormView):
|
|||
2)
|
||||
vm_specs["vat_country"] = user_vat_country
|
||||
vm_specs["discount"] = discount
|
||||
vm_specs["price_with_vat"] = price + vat
|
||||
vm_specs["price_after_discount"] = round(price - discount['amount'], 2)
|
||||
vm_specs["price_after_discount_with_vat"] = round((price - discount['amount']) + vm_specs["vat"], 2)
|
||||
request.session['specs'] = vm_specs
|
||||
|
||||
context.update({
|
||||
|
|
Loading…
Reference in a new issue