mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Fix allow_ignore_quota with bundled items
This commit is contained in:
@@ -794,8 +794,9 @@ class CartManager:
|
|||||||
for b in op.bundled:
|
for b in op.bundled:
|
||||||
b_quotas = list(b.quotas)
|
b_quotas = list(b.quotas)
|
||||||
if not b_quotas:
|
if not b_quotas:
|
||||||
err = err or error_messages['unavailable']
|
if not op.voucher or not op.voucher.allow_ignore_quota:
|
||||||
available_count = 0
|
err = err or error_messages['unavailable']
|
||||||
|
available_count = 0
|
||||||
continue
|
continue
|
||||||
b_quota_available_count = min(available_count * b.count, min(quotas_ok[q] for q in b_quotas))
|
b_quota_available_count = min(available_count * b.count, min(quotas_ok[q] for q in b_quotas))
|
||||||
if b_quota_available_count < b.count:
|
if b_quota_available_count < b.count:
|
||||||
|
|||||||
Reference in New Issue
Block a user