Missing float conversions
This commit is contained in:
parent
940eaf3a07
commit
efe411933f
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class GenericProduct(AssignPermissionsMixin, models.Model):
|
|||
def get_actual_price(self, vat_rate=None):
|
||||
VAT = vat_rate if vat_rate is not None else self.product_vat
|
||||
return round(
|
||||
float(self.product_price) + float(self.product_price * VAT), 2
|
||||
float(self.product_price) + float(self.product_price) * float(VAT), 2
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue