Commits

Kai Diefenbach committed f47cd4c

lfs.checkout: pass the cart to calculate the voucher price.

Comments (0)

Files changed (1)

lfs/checkout/views.py

         display_voucher = False
         voucher_value = 0
         voucher_tax = 0
-    else:
-        cart_price = cart_price - voucher.get_price_gross()
+    else:        
         display_voucher = True
         voucher_value = voucher.get_price_gross(cart)
+        cart_price = cart_price - voucher_value
         voucher_tax = voucher.get_tax(cart)
         voucher.mark_as_used()