Remove positivity constraint in apply_voucher

This commit is contained in:
Raphael Michel
2019-12-12 12:02:12 +01:00
parent 8a17fedaa6
commit 3da79ad36b
2 changed files with 4 additions and 0 deletions

View File

@@ -461,8 +461,10 @@ class CartManager:
bundled_sum += bundledprice
price = self._get_price(p.item, p.variation, voucher, None, p.subevent, bundled_sum=bundled_sum)
"""
if price.gross > p.price:
continue
"""
voucher_use_diff[voucher] += 1
ops.append((p.price - price.gross, self.VoucherOperation(p, voucher, price)))