Change-Id: I163ecc2a109c051a49266e92ad1ffaf583fa2f62
{% for price in event.priceFiltered %}
<tr><td>{{price.pricecategory.name}}</td>
<td>{{price.price|asMoney}}
- {% set avail=int(price.maxavailable)-int(price.amountticketsblock) %}</td>
+ {% set avail=int(price.maxavailable)-int(price.amountticketsblock) %}
+ {% if avail > int(event.amountFree) %}
+ {% set avail=int(event.amountFree) %}
+ {% endif %}
+ </td>
<td>{{avail}}</td><td>{{price.maxavailable}}</td>
<td>{% if checkflags(price.flags) && avail>0 %}
<a href="order:?ev={{event.id}}&pr={{price.pricecategoryid}}">order</a>