Commits

Kai Diefenbach committed c57f45e

Fixed calculation of packages for order items (within packages filter tag).

  • Participants
  • Parent commits 1b2a553

Comments (0)

Files changed (1)

File lfs/core/templatetags/lfs_tags.py

     amount.
     """
     if cart_item.product.packing_unit:
-        return int(math.ceil(cart_item.amount / cart_item.product.packing_unit))
+        return int(math.ceil(float(cart_item.amount) / cart_item.product.packing_unit))
     return 0