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: