Fix a bug around bundles and carts

This commit is contained in:
Raphael Michel
2019-05-15 15:56:54 +02:00
parent 0311c0251a
commit dba8761bc5
2 changed files with 15 additions and 2 deletions

View File

@@ -534,7 +534,6 @@ def _check_positions(event: Event, now_dt: datetime, positions: List[CartPositio
continue
if price.gross != cp.price and not (cp.item.free_price and cp.price > price.gross):
positions[i] = cp
cp.price = price.gross
cp.includes_tax = bool(price.rate)
cp.save()
@@ -558,7 +557,6 @@ def _check_positions(event: Event, now_dt: datetime, positions: List[CartPositio
break
if quota_ok:
positions[i] = cp
cp.expires = now_dt + timedelta(
minutes=event.settings.get('reservation_time', as_type=int))
cp.save()