summaryrefslogtreecommitdiff
path: root/indoteknik_api
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-06-02 10:23:05 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-06-02 10:23:05 +0700
commit673e5500269f96492a447eb7ea38ed16b1827468 (patch)
tree8c747ee01cc49c0d8e59ab816659530999c66707 /indoteknik_api
parentcaae31d0376d62ca62a6d4e3fa5aaa0842fc9c88 (diff)
ceiling price exclude after discount
Diffstat (limited to 'indoteknik_api')
-rw-r--r--indoteknik_api/models/product_product.py2
1 files changed, 1 insertions, 1 deletions
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):