fix price_after_discount
This commit is contained in:
@@ -308,7 +308,7 @@ class ProductVariant(models.Model):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def price_after_discount(self):
|
def price_after_discount(self):
|
||||||
return self.price * (self.discount / 100)
|
return self.price - self.discount_amount
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def discount_amount(self):
|
def discount_amount(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user