From 673e5500269f96492a447eb7ea38ed16b1827468 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Fri, 2 Jun 2023 10:23:05 +0700 Subject: ceiling price exclude after discount --- indoteknik_api/models/product_product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indoteknik_api/models') diff --git a/indoteknik_api/models/product_product.py b/indoteknik_api/models/product_product.py index 49ea7804..7913e37e 100644 --- a/indoteknik_api/models/product_product.py +++ b/indoteknik_api/models/product_product.py @@ -139,7 +139,7 @@ class ProductProduct(models.Model): default_divide_tax = float(1.11) price_after_disc = self._get_website_price_after_disc() res = price_after_disc / default_divide_tax - res = math.floor(res) + res = math.ceil(res) return res def _get_website_price_after_disc(self): -- cgit v1.2.3