Fix bug
Use Decimal discount_amount
This commit is contained in:
parent
2186ff1250
commit
53d5c66bd1
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ def get_vm_price_with_vat(cpu, memory, ssd_size, hdd_size=0,
|
|||
'name': pricing.discount_name,
|
||||
'amount': round(float(pricing.discount_amount), 2)
|
||||
}
|
||||
price_after_discount = price - discount['amount']
|
||||
price_after_discount = price - pricing.discount_amount
|
||||
|
||||
if pricing.vat_inclusive:
|
||||
vat = decimal.Decimal(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue