diff options
Diffstat (limited to 'indoteknik_api/models')
| -rw-r--r-- | indoteknik_api/models/product_pricelist.py | 2 |
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): |
