Show "sold out" if all quota is blocked by orders, even unpaid ones

This commit is contained in:
Raphael Michel
2017-03-13 17:43:52 +01:00
parent af3e811f94
commit aed78c2d69
2 changed files with 2 additions and 2 deletions

View File

@@ -591,7 +591,7 @@ class Quota(LoggedModel):
size_left -= self.count_blocking_vouchers(now_dt)
if size_left <= 0:
return Quota.AVAILABILITY_ORDERED, 0
return Quota.AVAILABILITY_RESERVED, 0
size_left -= self.count_in_cart(now_dt)
if size_left <= 0:

View File

@@ -1,6 +1,6 @@
{% load i18n %}
{% load eventurl %}
{% if avail == 0 %}
{% if avail <= 10 %}
<div class="col-md-2 col-xs-6 availability-box gone">
<strong>{% trans "SOLD OUT" %}</strong>
{% if event.settings.waiting_list_enabled %}