{% for d in data %}
{{ d.total_reserved }} {{ d.actual_qty }} {{ (d.pending_qty > 0) ? ("(" + d.pending_qty+ ")") : "" }} {% if d.pending_qty > 0 %} {% endif %}
{% endfor %}