discount name in templates

This commit is contained in:
Arvind Tiwari 2018-05-07 06:25:50 +05:30
commit eeed9b2e72
5 changed files with 15 additions and 11 deletions

View file

@ -172,7 +172,7 @@ class IndexView(CreateView):
'vat': vat,
'vat_percent': vat_percent,
'discount': discount,
'total_price': price + vat - discount,
'total_price': price + vat - discount.amount,
'pricing_name': vm_pricing_name
}
request.session['specs'] = specs