Commits

Kai Diefenbach committed 55be448

Round prices in order to find the cheapest base price.

  • Participants
  • Parent commits d74e72b

Comments (0)

Files changed (1)

File lfs/catalog/models.py

         """
         prices = []
         for variant in Product.objects.filter(parent=self, active=True):
-            price = variant.get_base_price_gross(request)
+            price = float("%.2f" % variant.get_base_price_gross(request))
             if price not in prices:
                 prices.append(price)