summaryrefslogtreecommitdiff
path: root/indoteknik_api/models
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-10-24 11:45:36 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-10-24 11:45:36 +0700
commite0d9fdcfd618332d6324c244859e9cbbf3a6a225 (patch)
tree2b5a3a44cbe6796dd2d20eec00810eef04ba1f02 /indoteknik_api/models
parentb8bb3887d9ddb201b993ba187592bbb1f0b449c4 (diff)
Product similar result without its id
Product result discount percentage limit float length
Diffstat (limited to 'indoteknik_api/models')
-rw-r--r--indoteknik_api/models/product_pricelist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/models/product_pricelist.py b/indoteknik_api/models/product_pricelist.py
index 2cd1eb9f..6a011934 100644
--- a/indoteknik_api/models/product_pricelist.py
+++ b/indoteknik_api/models/product_pricelist.py
@@ -55,7 +55,7 @@ class ProductPricelist(models.Model):
return {
'price': price,
'price_discount': price_discount,
- 'discount_percentage': discount_percentage
+ 'discount_percentage': float("%.2f" % discount_percentage)
}
def get_lowest_product_variant_price(self, product_template: dict, pricelist_id: int):