From 7414a2b3044cd426892f7ce2547366b76f7bc0a0 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Mon, 20 Oct 2025 18:56:56 +0330 Subject: [PATCH] fix price_after_discount --- backend/product/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/product/models.py b/backend/product/models.py index 21dd88d..da0ed8c 100644 --- a/backend/product/models.py +++ b/backend/product/models.py @@ -308,7 +308,7 @@ class ProductVariant(models.Model): @property def price_after_discount(self): - return self.price * (self.discount / 100) + return self.price - self.discount_amount @property def discount_amount(self):