From e2c5580061423658186da80e15c1a7e67062f377 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Sat, 26 Nov 2016 16:05:14 +0100 Subject: [PATCH] saner availability for tickets in eventview Change-Id: I163ecc2a109c051a49266e92ad1ffaf583fa2f62 --- commonlib/widgets/eventview.html | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/commonlib/widgets/eventview.html b/commonlib/widgets/eventview.html index 3813535..77dbd1e 100644 --- a/commonlib/widgets/eventview.html +++ b/commonlib/widgets/eventview.html @@ -21,7 +21,11 @@ Seats: {{event.capacity}} max.; ({{event.amountSold}} sold out; {{event.amountRe {% for price in event.priceFiltered %} {{price.pricecategory.name}} {{price.price|asMoney}} - {% set avail=int(price.maxavailable)-int(price.amountticketsblock) %} + {% set avail=int(price.maxavailable)-int(price.amountticketsblock) %} + {% if avail > int(event.amountFree) %} + {% set avail=int(event.amountFree) %} + {% endif %} + {{avail}}{{price.maxavailable}} {% if checkflags(price.flags) && avail>0 %} order -- 1.7.2.5