Vouchers: Fix label on redemption page

This commit is contained in:
Raphael Michel
2022-10-25 14:59:40 +02:00
parent a29dbd88ac
commit 45f579caf2
4 changed files with 13 additions and 9 deletions

View File

@@ -581,6 +581,10 @@ class Voucher(LoggedModel):
else:
return bool(subevent.seating_plan) if subevent else self.event.seating_plan
@property
def min_usages_remaining(self):
return max(1, self.min_usages - self.redeemed)
@classmethod
def annotate_budget_used_orders(cls, qs):
opq = OrderPosition.objects.filter(