fix discount amount
This commit is contained in:
parent
eeed9b2e72
commit
3d2ce27954
2 changed files with 4 additions and 4 deletions
|
|
@ -172,7 +172,7 @@ class IndexView(CreateView):
|
|||
'vat': vat,
|
||||
'vat_percent': vat_percent,
|
||||
'discount': discount,
|
||||
'total_price': price + vat - discount.amount,
|
||||
'total_price': price + vat - discount['amount'],
|
||||
'pricing_name': vm_pricing_name
|
||||
}
|
||||
request.session['specs'] = specs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue